import { useState, useEffect } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { Menu, X } from 'lucide-react'; const Navigation = () => { const [isOpen, setIsOpen] = useState(false); const [isScrolled, setIsScrolled] = useState(false); const location = useLocation(); useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 50); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const navItems = [ { name: 'Home', path: '/' }, { name: 'Services', path: '/services' }, { name: 'About', path: '/about' }, { name: 'Blog', path: '/blog' }, { name: 'Contact', path: '/contact' }, ]; const isActive = (path: string) => location.pathname === path; return ( ); }; export default Navigation;