/* global React, waLink, BRAND */
const { useState: useStateS } = React;
/* WhatsApp icon */
function WAIcon({ size = 16 }) {
return (
);
}
/* WhatsApp CTA — opens wa.me with prefilled message */
function WAButton({ msg, children, variant = "gold", number, icon = true, className = "" }) {
const cls = (variant === "ghost" ? "btn-ghost" : "btn-gold") + " wa-btn " + className;
return (
{icon && }
{children}
);
}
/* Floating WhatsApp button (persistent) */
function FloatingWA() {
return (
Consultar por WhatsApp
);
}
/* Accordion (FAQ) */
function Accordion({ items }) {
const [open, setOpen] = useStateS(0);
return (
{items.map(([q, a], i) => (
setOpen(open === i ? -1 : i)} aria-expanded={open === i}>
{q}
{open === i ? "–" : "+"}
))}
);
}
/* Small "Sitio oficial" seal */
function OfficialSeal({ small }) {
return (
Sitio oficial
);
}
/* Section eyebrow + title block (left-aligned variant for content sections) */
function Heading({ kicker, title, center }) {
return (
{kicker &&
{kicker}
}
{title}
);
}
Object.assign(window, { WAIcon, WAButton, FloatingWA, Accordion, OfficialSeal, Heading });