/* global React */
const Hero = ({ copy }) => {
const [form, setForm] = React.useState({ nome: "", whatsapp: "" });
const submit = (e) => {
e.preventDefault();
const msg = encodeURIComponent(`Olá! Me chamo ${form.nome} e tenho interesse em um site de afiliado do Mercado Livre. Meu WhatsApp: ${form.whatsapp}`);
window.open(`https://wa.me/5511999999999?text=${msg}`, "_blank");
};
return (
{/* decorative blobs */}
{/* sparkles */}
{/* LEFT COPY */}
{copy.heroBadge}
{copy.heroTitle.before}{" "}
{copy.heroTitle.highlight}
{copy.heroTitle.after}
{copy.heroSub}
{/* trust strip */}
{/* RIGHT FORM CARD */}
);
};
const Sparkle = ({ style }) => (
);
const Spark = () => (
);
const TrustItem = ({ icon, label }) => {
const icons = {
bolt: ,
shield: ,
rocket: ,
};
return (
{label}
);
};
const Field = ({ label, name, value, onChange, type = "text", placeholder }) => (
);
window.Hero = Hero;