import React, { useState, useEffect } from 'react'; import { Menu, X, Activity } from 'lucide-react'; import { NavItem } from '../types'; const NAV_ITEMS: NavItem[] = [ { label: 'Features', href: '#features' }, { label: 'The Logic', href: '#logic' }, { label: 'Reviews', href: '#reviews' }, { label: 'Pricing', href: '#pricing' }, { label: 'FAQ', href: '#faq' }, ]; export const Navbar: React.FC = () => { const [isScrolled, setIsScrolled] = useState(false); const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 20); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const handleScrollTo = (id: string) => { setIsMobileMenuOpen(false); const element = document.querySelector(id); if (element) { element.scrollIntoView({ behavior: 'smooth' }); } }; return ( ); };