import { useState } from "react"; /** * Pre-launch email capture. Front-end demo only: on submit it shows a success * state. Wire `postEmail` to the real CRM endpoint (FluentCRM tag `prelaunch`) * when the backend is ready. */ export default function EmailForm({ className = "", cta = "Send it to me" }) { const [email, setEmail] = useState(""); const [done, setDone] = useState(false); async function onSubmit(e) { e.preventDefault(); if (!email) return; // TODO: await postEmail(email) — POST to CRM, then setDone(true) setDone(true); } if (done) { return (
✓ You’re on the list — check your inbox for the preview chapter.
); } return ( ); }