/* global React, LogoMark */ const { useState } = React; const NAV_ITEMS = [ { id: "home", label: "Accueil" }, { id: "lineup", label: "Line-up" }, { id: "infos", label: "Infos" }, { id: "tickets", label: "Billetterie" }, { id: "contact", label: "Contact" }, ]; function Nav({ page, setPage }) { const [open, setOpen] = useState(false); const go = (id) => { setPage(id); setOpen(false); window.scrollTo({ top: 0, behavior: "instant" }); }; return ( <>
{NAV_ITEMS.map((it) => ( ))}
); } function Footer({ setPage }) { return ( ); } Object.assign(window, { Nav, Footer });