// Nav + WhatsApp FAB + mobile drawer const NAV_LINKS = [ { href: '#collections', label: 'Collections' }, { href: '#diamonds', label: 'Diamonds' }, { href: '#bespoke', label: 'Bespoke' }, { href: '#boutiques', label: 'Boutiques' }, { href: '#heritage', label: 'Heritage' }, { href: '#testimonials', label: 'Testimonials' }, ]; const Nav = ({ onBook }) => { const [scrolled, setScrolled] = React.useState(false); const [open, setOpen] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 80); onScroll(); window.addEventListener('scroll', onScroll, { passive: true }); return () => window.removeEventListener('scroll', onScroll); }, []); return ( setOpen(!open)} aria-label="Menu"> WhatsApp {NAV_LINKS.map(l => {l.label})} {open && ( {NAV_LINKS.map(l => ( setOpen(false)} style={{ fontFamily: 'var(--display)', fontSize: 36, padding: '20px 0', borderBottom: '1px solid var(--line)', color: 'var(--ink)' }}>{l.label} ))} { setOpen(false); onBook(); }}>Book a Consultation WhatsApp Us )} ); }; const WhatsAppFab = () => ( Chat on WhatsApp ); Object.assign(window, { Nav, WhatsAppFab });