// Header — sticky nav with logo, links, and click-to-call CTA const { Logo, Button } = window.ThaiVillageCuisineDesignSystem_bfe0b3; function Header() { const { NAP } = window; const { PhoneIcon, MenuIcon, XIcon } = window; const [scrolled, setScrolled] = React.useState(false); const [open, setOpen] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 16); window.addEventListener('scroll', onScroll, { passive: true }); return () => window.removeEventListener('scroll', onScroll); }, []); const links = [['Menu', '#menu'], ['About', '#about'], ['Hours', '#hours']]; const go = (e, href) => { e.preventDefault(); setOpen(false); document.querySelector(href)?.scrollIntoView({ behavior: 'smooth', block: 'start' }); }; return (
go(e, '#top')} aria-label="Thai Village Cuisine — home" style={{ display: 'inline-flex' }}>
{/* Mobile drawer */}
); } window.Header = Header;