import React from 'react'; import { X, User, HelpCircle, Info, Phone, History, Cpu, ShieldCheck, Terminal, AlertTriangle, Home as HomeIcon } from 'lucide-react'; import { useNavigate } from 'react-router-dom'; import { cn } from '../lib/utils'; import { useThemeStore } from '../store/theme'; interface SidebarProps { isOpen: boolean; onClose: () => void; } export function Sidebar({ isOpen, onClose }: SidebarProps) { const { theme, toggleTheme } = useThemeStore(); const navigate = useNavigate(); const menuItems = [ { icon: HomeIcon, label: 'Home', path: '/home' }, { icon: User, label: 'Account Details', path: '/account-details' }, { icon: HelpCircle, label: 'How to Use', path: '/how-to-use' }, { icon: Info, label: 'About Us', path: '/about-us' }, { icon: Phone, label: 'Contact Us', path: '/contact-us' }, { icon: History, label: 'History', path: '/history' }, ]; return ( <> {isOpen && (
)} ); }