import { useSubmission } from '@solidjs/router'; import { Show } from 'solid-js'; import { type ContactForm } from '~/routes/contact'; import { Spinner } from '../icons/Spinner'; type Props = { contactHandler: ContactForm; }; export function Contact(props: Props) { const draft = useSubmission(props.contactHandler); const onInput = () => { if (draft.result?.fieldErrors) { draft.clear(); } }; return (
Reach out

Contact us

Drop a note or call
{(er) =>

{er}, try again shortly!

}