import { useState, FormEvent } from "react"; import { ContactFormInput } from "./ContactFormInput"; import { ContactFormSubmitButton } from "./ContactFormSubmitButton"; import { ContactFormTextArea } from "./ContactFormTextArea"; type Props = { setIsSubmitted: (value: boolean) => void; }; export const ContactForm = ({ setIsSubmitted }: Props) => { const [firstName, setFirstName] = useState(""); const [lastName, setLastName] = useState(""); const [email, setEmail] = useState(""); const [phone, setPhone] = useState(""); const [message, setMessage] = useState(""); const handleSubmit = (e: FormEvent) => { e.preventDefault(); setIsSubmitted(true); }; return (
); };