/* global React, IconPhone, IconArrow, IconMenu */ const NAV = [ { id: "home", label: "Home" }, { id: "treatments", label: "Treatments" }, { id: "dentists", label: "Our Dentists" }, { id: "reviews", label: "Reviews" }, { id: "contact", label: "Contact" } ]; function Header({ activeId, onNav, onBook }) { const [stuck, setStuck] = React.useState(false); React.useEffect(() => { const onScroll = () => setStuck(window.scrollY > 20); onScroll(); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); return (
{ e.preventDefault(); onNav("home"); }}> Empire Dental Clinic
{CLINIC.phone}
); } window.Header = Header;