/* JETX — TEMPORARY CONTACT page (review build) Same contact form (wired to Web3Forms) but uses the temp shell so the nav/footer don't link to unreleased pages. */ const { useState: useStateCT } = React; function TempContactBody() { const [form, setForm] = useStateCT({ name: "", email: "", org: "", interest: "General inquiry", message: "" }); const [sent, setSent] = useStateCT(false); const [sending, setSending] = useStateCT(false); const [error, setError] = useStateCT(""); const onChange = (k) => (e) => setForm((f) => ({ ...f, [k]: e.target.value })); const submit = async (e) => { e.preventDefault(); if (!form.name || !form.email || sending) return; setSending(true); setError(""); try { const res = await fetch("https://api.web3forms.com/submit", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, body: JSON.stringify({ access_key: "9b95ee5f-ae74-4213-b1de-fa4482cc1c7c", subject: `JETX site \u2014 ${form.interest} \u2014 ${form.name}`, from_name: "JETX Website", name: form.name, email: form.email, organization: form.org, interest: form.interest, message: form.message, }), }); const data = await res.json(); if (data.success) setSent(true); else setError(data.message || "Something went wrong. Please email us directly."); } catch (err) { setError("Network error. Please email us directly."); } finally { setSending(false); } }; return ( Get in touch Let's talk. We'd love to hear from you. Email info@jetxus.com {[ { l: "X", href: "https://twitter.com/JETXAERO", g: "𝕏" }, { l: "LinkedIn", href: "https://www.linkedin.com/company/jetxus/", g: "in" }, { l: "YouTube", href: "https://www.youtube.com/channel/UC3EqOdS30VVZnpXG4Lb_88Q", g: "▶" }, { l: "Instagram", href: "https://www.instagram.com/jetx_us/", g: "◳" }, ].map((s) => ( {s.g} ))} {sent ? ( MESSAGE RECEIVED Thank you, {form.name.split(" ")[0]}. We'll reply from info@jetxus.com. For anything time-sensitive, email us directly. { setSent(false); setForm({ name: "", email: "", org: "", interest: "General inquiry", message: "" }); }}> Send another→ ) : ( Name Email Organization I'm interested in General inquiry Propulsion technology Partnership Investment Aircraft / parts Charter / consulting Message {error ? ( {error} ) : null} {sending ? "Sending\u2026" : "Send message"}{sending ? "" : "\u2192"} )} ); } function TempContactPage() { return ( ); } ReactDOM.createRoot(document.getElementById("root")).render( );
We'd love to hear from you.