import { useState } from 'react' import { Link, useLocation, useNavigate } from 'react-router-dom' import { useAuth } from '../contexts/AuthContext' import { Zap, Menu, X, LayoutDashboard, Grid3X3, Calculator, FileText, Users, LogOut, DollarSign } from 'lucide-react' export default function Navbar() { const [isOpen, setIsOpen] = useState(false) const { user, signOut } = useAuth() const location = useLocation() const navigate = useNavigate() const handleSignOut = async () => { await signOut() navigate('/') } const isActive = (path) => location.pathname === path const navLinks = user ? [ { path: '/dashboard', label: 'Dashboard', icon: LayoutDashboard }, { path: '/grid', label: 'Grid View', icon: Grid3X3 }, { path: '/roi', label: 'ROI Calculator', icon: Calculator }, { path: '/audit', label: 'Audit Logs', icon: FileText }, ] : [ { path: '/', label: 'Home', icon: null }, { path: '/pricing', label: 'Pricing', icon: DollarSign }, { path: '/about', label: 'About', icon: Users }, ] return ( ) }