/* REVO JURIS — Contact + enquiry form, Footer, mobile action bar (single-language) */ function Contact({ matter, setMatter }) { const lang = useLang(); const tx = useTx(); const cjk = lang === 'ZH' ? ' cjk' : ''; const [sent, setSent] = React.useState(false); const [form, setForm] = React.useState({ name: '', phone: '', email: '', msg: '', consent: false }); const set = (k, v) => setForm(f => ({ ...f, [k]: v })); const submit = (e) => { e.preventDefault(); setSent(true); }; return (
{CONTACT_INFO.map((ci, i) => (
{tx(ci.k)}
{tx(ci.v)}{ci.sub && {tx(ci.sub)}}
))}
{sent ? (

{tx(FORM.okTitle)}

{tx(FORM.okBody)}

) : (

{tx(FORM.title)}

{tx(FORM.sub)}
{FORM.matters.map(([id, lbl]) => ( ))}
set('name', e.target.value)} placeholder={tx(FORM.namePh)} />
set('phone', e.target.value)} placeholder="+852 5715 5628" />
set('email', e.target.value)} placeholder="you@email.com" />