'use client' import { useAgentStore } from '@/hooks/useAgentStore' import { MessageSquare, ListTodo, Brain, Clock, Plug, Terminal, Plus, Zap, Code2, Bug, Cpu, GitBranch, Workflow, Rocket, Palette, Bot, Globe, Folder, FlaskConical, Eye, Cpu as CpuIcon } from 'lucide-react' import type { ActivePanel, AgentName } from '@/hooks/useAgentStore' const PANELS: { id: ActivePanel; icon: React.ElementType; labelEn: string; labelMy: string; badge?: string }[] = [ { id: 'timeline', icon: Clock, labelEn: 'Timeline', labelMy: 'အချိန်ဇယား' }, { id: 'tasks', icon: ListTodo, labelEn: 'Tasks', labelMy: 'လုပ်ငန်းများ' }, { id: 'sandbox', icon: Terminal, labelEn: 'Terminal', labelMy: 'Terminal' }, { id: 'files', icon: Folder, labelEn: 'Files', labelMy: 'ဖိုင်များ', badge: 'v7' }, { id: 'browser', icon: Globe, labelEn: 'Browser', labelMy: 'ဘရောင်ဇာ', badge: 'v7' }, { id: 'memory', icon: Brain, labelEn: 'Memory', labelMy: 'မှတ်ဉာဏ်' }, { id: 'connectors', icon: Plug, labelEn: 'Connectors', labelMy: 'ချိတ်ဆက်မှု' }, { id: 'ai_router', icon: Cpu, labelEn: 'AI Router', labelMy: 'AI Router', badge: 'v8' }, ] const AGENT_META: Record = { chat: { icon: MessageSquare, color: '#22d3ee', label: 'Chat' }, planner: { icon: Zap, color: '#a78bfa', label: 'Planner' }, coding: { icon: Code2, color: '#34d399', label: 'Coding' }, debug: { icon: Bug, color: '#f87171', label: 'Debug' }, memory: { icon: Brain, color: '#fbbf24', label: 'Memory' }, connector: { icon: Plug, color: '#60a5fa', label: 'Connector' }, deploy: { icon: Rocket, color: '#f472b6', label: 'Deploy' }, workflow: { icon: Workflow, color: '#fb923c', label: 'Workflow' }, sandbox: { icon: Terminal, color: '#4ade80', label: 'Sandbox' }, ui: { icon: Palette, color: '#e879f9', label: 'UI' }, browser: { icon: Globe, color: '#38bdf8', label: 'Browser', isNew: true }, file: { icon: Folder, color: '#fcd34d', label: 'File', isNew: true }, git: { icon: GitBranch, color: '#f97316', label: 'Git', isNew: true }, test: { icon: FlaskConical, color: '#a3e635', label: 'Test', isNew: true }, vision: { icon: Eye, color: '#c084fc', label: 'Vision', isNew: true }, } export default function Sidebar() { const { sidebarOpen, activePanel, setActivePanel, locale, messages, clearMessages, agents } = useAgentStore() if (!sidebarOpen) return null return ( ) }