function Products({ onQuote }) { const D = (window.SITE && window.SITE.products) || {}; const settings = (window.SITE && window.SITE.settings) || {}; const PRODS = D.items || []; const waDigits = (settings.contact && settings.contact.whatsappDigits) || '5544999451010'; const [active, setActive] = React.useState((PRODS[0] && PRODS[0].id) || 'auto'); const current = PRODS.find(p => p.id === active) || PRODS[0]; if (!current) return null; return (
{D.eyebrow}

{D.title}.

{D.subtitle}

{PRODS.map(p => { const Ico = Icon[p.icon] || Icon.Shield; const isActive = p.id === active; return ( ); })}
{React.createElement(Icon[current.icon] || Icon.Shield, { width: 26, height: 26 })}
{current.from}

{current.title}

{current.pitch}

{(current.bullets || []).map((b, i) => (
{b}
))}
WhatsApp
); } window.Products = Products;