import { useState, useEffect } from 'react' import { NavLink, useLocation } from 'react-router-dom' import { Home, MessageSquare, BarChart3, Users, FileText, Database, Settings, ChevronLeft, ChevronRight, Download, Bot, Aperture, UserCircle, Lock } from 'lucide-react' import { useAppStore } from '../stores/appStore' import * as configService from '../services/config' import './Sidebar.scss' function Sidebar() { const location = useLocation() const [collapsed, setCollapsed] = useState(false) const [authEnabled, setAuthEnabled] = useState(false) const setLocked = useAppStore(state => state.setLocked) useEffect(() => { configService.getAuthEnabled().then(setAuthEnabled) }, []) const isActive = (path: string) => { return location.pathname === path || location.pathname.startsWith(`${path}/`) } return ( ) } export default Sidebar