function Nav({ current = 'home' }) { const [scrolled, setScrolled] = React.useState(false); React.useEffect(() => { const on = () => setScrolled(window.scrollY > 8); window.addEventListener('scroll', on); return () => window.removeEventListener('scroll', on); }, []); const links = [ { label: 'Approach', href: 'approach.html', key: 'approach' }, { label: 'Framework', href: 'framework.html', key: 'framework' }, { label: 'White Paper', href: 'white-paper.html', key: 'white-paper' }, { label: 'About', href: 'about.html', key: 'about' }, ]; return ( ); } window.Nav = Nav;