import { useState, useEffect } from 'react' import { Link, useLocation } from 'react-router' import { useTheme } from '@/hooks/useTheme' import { RollingTextLink } from '@/components/ui/RollingTextLink' const navItems = [ { label: 'Home', path: '/' }, { label: 'About', path: '/about' }, { label: 'Experience', path: '/experience' }, { label: 'Projects', path: '/projects' }, { label: 'Engineering', path: '/engineering' }, { label: 'Contact', path: '/contact' }, ] export function Navigation() { const { cycleTheme, resolvedTheme } = useTheme() const [mobileOpen, setMobileOpen] = useState(false) const location = useLocation() useEffect(() => { if (mobileOpen) { document.body.style.overflow = 'hidden' } else { document.body.style.overflow = '' } return () => { document.body.style.overflow = '' } }, [mobileOpen]) useEffect(() => { setMobileOpen(false) }, [location.pathname]) return ( <>