// Nav + Footer function Nav({ route, setRoute, tweaks }) { const items = [ { id: 'home', label: 'Home' }, { id: 'products', label: 'Products' }, { id: 'about', label: 'About' }, { id: 'contact', label: 'Contact' }]; const [menuOpen, setMenuOpen] = React.useState(false); const go = (id) => {setRoute(id);setMenuOpen(false);}; // White logo for dark palette mode, blue for light/cream const variant = tweaks?.palette === 'midnight' ? 'white' : 'blue'; return ( ); } function Footer({ setRoute }) { const cc = window.c('contact', {}); return ( ); } Object.assign(window, { Nav, Footer });