import { Link, useLocation } from 'react-router-dom'; import { TrendingUp, BarChart3, History, Menu, X, Sparkles } from 'lucide-react'; import { useState } from 'react'; import ThemeToggle from './ThemeToggle'; export default function Header() { const location = useLocation(); const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const navItems = [ { path: '/', label: 'Dashboard', icon: BarChart3 }, { path: '/history', label: 'History', icon: History }, { path: '/about', label: 'How It Works', icon: Sparkles }, ]; const isActive = (path: string) => location.pathname === path; return (
{/* Logo */}
Nifty50 AI {/* Desktop Navigation */} {/* Theme Toggle & Mobile Menu */}
{/* Mobile Navigation */} {mobileMenuOpen && ( )}
); }