import { useState } from 'react'; import type { FormEvent } from 'react'; import { Button } from '@/components/site/button'; import { Field, FormSuccess, SelectInput, TextInput, } from '@/components/site/form-field'; import { common, serviceOptions } from '@/content/common'; import { useContent } from '@/hooks/use-locale'; /** * Compact consultation request form. * * TODO: submissions are not sent anywhere yet; wire this to a Laravel * endpoint before going live. */ export default function ConsultationForm({ idPrefix }: { idPrefix: string }) { const t = useContent(common); const [submitted, setSubmitted] = useState(false); const handleSubmit = (event: FormEvent) => { event.preventDefault(); setSubmitted(true); }; return (
{t.form.title} {t.form.subtitle}
{submitted ? ( ) : (

{t.form.nda}

)}
); }