SubmitLeadResult
The outcome of a {@link submitLead} call.
The outcome of a {@link submitLead} call. simulated: true means nothing was
actually sent — the page carried no site config (editor canvas or local
preview) — and is otherwise absent. A failure never throws; it resolves here
instead, with a reason and a user-facing message.
Import from @homepages/template-kit/browser.
Signature
Section titled “Signature”export type SubmitLeadResult = { ok: true; simulated?: true;} | { ok: false; reason: SubmitLeadFailure; message: string; status?: number;};