// Navbar + Footer + Mobile bottom bar + shared band components.
const { useState, useEffect } = React;
const NAV = [
{ id: "home", label: "Home" },
{ id: "services", label: "Services" },
{ id: "diagnostics", label: "Diagnostics" },
{ id: "team", label: "Our Vets" },
{ id: "about", label: "About" },
{ id: "contact", label: "Contact" },
];
function Navbar({ route, setRoute }) {
const [open, setOpen] = useState(false);
const [scrolled, setScrolled] = useState(false);
useEffect(() => {
const onS = () => setScrolled(window.scrollY > 8);
window.addEventListener("scroll", onS);
onS();
return () => window.removeEventListener("scroll", onS);
}, []);
const go = (id) => { setRoute({ page: id }); setOpen(false); };
return (