mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-11 21:06:43 +00:00
* use tsx * compile * refactor Router * refactor layout * refactor home container * refactor meal container * refactor categories container * refactor category container * refactor search and profile container * refactor
23 lines
641 B
TypeScript
23 lines
641 B
TypeScript
import { FC, useState } from "react";
|
|
import PageLayout from "../../layouts/PageLayout";
|
|
import { ContactForm } from "../../components/ContactForm";
|
|
|
|
export const Contact: FC = () => {
|
|
const [isSubmitted, setIsSubmitted] = useState(false);
|
|
|
|
return isSubmitted ? (
|
|
<div className="container center-align">
|
|
<img
|
|
className="responsive-img"
|
|
src={require("../../images/mail_sent.svg")}
|
|
alt="mail_sent"
|
|
width="30%"
|
|
/>
|
|
<h4>Thank you for your message</h4>
|
|
</div>
|
|
) : (
|
|
<PageLayout title="Contact Us">
|
|
<ContactForm setIsSubmitted={setIsSubmitted} />
|
|
</PageLayout>
|
|
);
|
|
};
|