function Contact() { const [form, setForm] = useState({ name: "", company: "", scope: [], message: "" }); const [errs, setErrs] = useState({}); const [sent, setSent] = useState(false); const scopes = ["Análise de dados", "Desenvolvimento de sistemas", "Automação de tarefas", "Ainda não sei"]; function update(k, v) { setForm(f => ({...f, [k]: v})); setErrs(e => ({...e, [k]: null})); } function toggleScope(s) { setForm(f => ({...f, scope: f.scope.includes(s) ? f.scope.filter(x => x!==s) : [...f.scope, s]})); } function submit(e) { e.preventDefault(); const er = {}; if (!form.name.trim()) er.name = "Informe seu nome"; if (form.scope.length === 0) er.scope = "Selecione pelo menos uma frente"; if (form.message.trim().length < 12) er.message = "Nos conte um pouco mais (12+ caracteres)"; if (Object.keys(er).length) { setErrs(er); return; } const companyPart = form.company.trim() ? `, da empresa ${form.company.trim()}` : ""; const scopePart = form.scope.join(", "); const msg = `Olá! Me chamo ${form.name.trim()}${companyPart}.\n\nTenho interesse em: ${scopePart}.\n\n${form.message.trim()}`; window.open(`https://wa.me/5579988595156?text=${encodeURIComponent(msg)}`, "_blank", "noopener,noreferrer"); setSent(true); } if (sent) return (
Nexalyze

Abrindo WhatsApp, {form.name.split(' ')[0]}.

Sua mensagem já foi pré-preenchida no WhatsApp. Caso a janela não tenha aberto, clique aqui.

[ protocolo · NX-{Date.now().toString(36).toUpperCase()} ]
); return (
começar

Conte o problema. A gente estima o caminho.

Diagnóstico inicial é gratuito: 45 minutos em call, um mapa do seu fluxo atual e três caminhos priorizados por ROI. Sem amarras.

update("name", e.target.value)} placeholder="Como te chamamos?" /> {errs.name && {errs.name}}
update("company", e.target.value)} placeholder="Nome da empresa + setor" />
{scopes.map(s => ( ))}
{errs.scope && {errs.scope}}