import React, { useState } from "react"; function ContactUs() { const [formSubmitted, setFormSubmitted] = useState(false); const [formError, setFormError] = useState(false); const handleSubmit = (e) => { e.preventDefault(); // Simulating form submission setTimeout(() => { setFormSubmitted(true); }, 1000); }; return (
Thank you for reaching out! We'll get back to you soon.
)} {formError && (There was an error submitting your form. Please try again.
)}