import { Bot, Folder, Home, Package, Settings } from "lucide-react"; import { Link, useLocation } from "react-router"; import { useUIStore, type ViewType } from "../stores/ui-store"; interface NavItemProps { view: string; Icon: React.ComponentType>; label: string; to: string; } function NavItem({ view, Icon, label, to }: NavItemProps) { const uiStore = useUIStore(); const location = useLocation(); const isActive = location.pathname === to || uiStore.currentView === view; const handleClick = () => { uiStore.setView(view as ViewType); }; return ( ); } export function Sidebar() { const uiStore = useUIStore(); return ( ); }