import React from 'react'; import { LayoutDashboard, MessageSquare, Settings, Clock, Server, Terminal, Zap, FolderOpen, ClipboardList, BrainCircuit, Hash, Bot, Workflow, Boxes } from 'lucide-react'; import { useTranslation } from 'react-i18next'; import { useAppContext } from '../context/AppContext'; import NavItem from './NavItem'; const Sidebar: React.FC = () => { const { t } = useTranslation(); const { token, setToken, sidebarOpen } = useAppContext(); const sections = [ { title: t('sidebarCore'), items: [ { icon: , label: t('dashboard'), to: '/' }, { icon: , label: t('chat'), to: '/chat' }, { icon: , label: t('logs'), to: '/logs' }, { icon: , label: t('logCodes'), to: '/log-codes' }, { icon: , label: t('skills'), to: '/skills' }, ], }, { title: t('sidebarSystem'), items: [ { icon: , label: t('config'), to: '/config' }, { icon: , label: t('cronJobs'), to: '/cron' }, { icon: , label: t('nodes'), to: '/nodes' }, { icon: , label: t('memory'), to: '/memory' }, { icon: , label: t('subagentProfiles'), to: '/subagent-profiles' }, { icon: , label: t('subagentsRuntime'), to: '/subagents' }, { icon: , label: t('pipelines'), to: '/pipelines' }, ], }, { title: t('sidebarOps'), items: [ { icon: , label: t('taskAudit'), to: '/task-audit' }, ], }, { title: t('sidebarInsights'), items: [ { icon: , label: t('ekg'), to: '/ekg' }, ], }, ]; return ( ); }; export default Sidebar;