/* ActiveFit360 marketing — sticky pill site header */ const NS_h = window.Activefit360DesignSystem_d87766; function Wordmark({ onDark = false, size = 19 }) { return ( ActiveFit360 ); } window.Wordmark = Wordmark; function SiteHeader({ current = 'home', onNavigate = () => {}, onBook = () => {} }) { const { Button } = NS_h; const [open, setOpen] = React.useState(false); const links = [ ['home', 'Home'], ['services', 'Services'], ['reviews', 'Reviews'], ['contact', 'Contact'], ['about', 'About'], ]; const routes = window.AF_ROUTES; const go = (id) => { onNavigate(id); setOpen(false); }; const navClick = (id) => (e) => { e.preventDefault(); go(id); }; return (
{/* brand */} ActiveFit360 {/* desktop nav */} {/* actions */}
{/* mobile toggle */}
{/* mobile menu */} {open && (
{links.map(([id, label]) => ( {label} ))}
Call { onBook(); setOpen(false); }}>Book
)}
); } Object.assign(window, { SiteHeader });