import { NavLink } from 'react-router-dom'; import { basePath } from '../../lib/basePath'; import { LayoutDashboard, MessageSquare, Wrench, Clock, Puzzle, Brain, Settings, DollarSign, Activity, Stethoscope, Monitor, } from 'lucide-react'; import { t } from '@/lib/i18n'; const navItems = [ { to: '/', icon: LayoutDashboard, labelKey: 'nav.dashboard' }, { to: '/agent', icon: MessageSquare, labelKey: 'nav.agent' }, { to: '/tools', icon: Wrench, labelKey: 'nav.tools' }, { to: '/cron', icon: Clock, labelKey: 'nav.cron' }, { to: '/integrations', icon: Puzzle, labelKey: 'nav.integrations' }, { to: '/memory', icon: Brain, labelKey: 'nav.memory' }, { to: '/config', icon: Settings, labelKey: 'nav.config' }, { to: '/cost', icon: DollarSign, labelKey: 'nav.cost' }, { to: '/logs', icon: Activity, labelKey: 'nav.logs' }, { to: '/doctor', icon: Stethoscope, labelKey: 'nav.doctor' }, { to: '/canvas', icon: Monitor, labelKey: 'nav.canvas' }, ]; interface SidebarProps { open: boolean; onClose: () => void; } export default function Sidebar({ open, onClose }: SidebarProps) { return ( <> {/* Backdrop — mobile only, visible when sidebar is open */} {open && (