"use client"; import Link from "next/link"; import { useCallback, useEffect, useState } from "react"; /** Nav from justine/01_homepage.html — classes defined in app/styles/justine/01-homepage.css */ export function JustineNav() { const [open, setOpen] = useState(false); const close = useCallback(() => { setOpen(false); document.body.style.overflow = ""; }, []); const toggle = useCallback(() => { setOpen((o) => { const next = !o; document.body.style.overflow = next ? "hidden" : ""; return next; }); }, []); useEffect(() => () => { document.body.style.overflow = ""; }, []); return ( <>
How it works Pricing Stories { e.preventDefault(); close(); }}> Blog Log in
); }