import { Link, useLocation } from 'react-router-dom'; import { Database, MessageSquare, User, LogOut, Brain, X } from 'lucide-react'; import { useAuth } from '../../context/AuthContext'; import './Sidebar.css'; interface SidebarProps { isOpen: boolean; onClose: () => void; } const Sidebar = ({ isOpen, onClose }: SidebarProps) => { const { user, logout } = useAuth(); const location = useLocation(); const isActive = (path: string) => location.pathname.startsWith(path); const navLinks = [ { to: '/knowledge-bases', icon: Database, label: 'Knowledge Bases' }, { to: '/assistants', icon: MessageSquare, label: 'Assistants' }, ]; const handleNavClick = () => { onClose(); }; return ( <>