// Caret landing — floating glass nav function Nav({ accent }) { const [scrolled, setScrolled] = useState(false); useEffect(() => { const on = () => setScrolled(window.scrollY > 12); window.addEventListener('scroll', on, { passive: true }); on(); return () => window.removeEventListener('scroll', on); }, []); const links = [ ['How it works', '#how'], ['Features', '#features'], ['Action Library', '#actions'], ['Bring your own', '#byo'], ['Pricing', '#pricing'], ['FAQ', '#faq'], ]; return (
Caret
{links.map(([t, h]) => {t})}
Menu
Download
); } Object.assign(window, { Nav });