import { X, PanelLeftClose, FolderKanban, SlidersHorizontal, Server, Bot, Wrench, Settings } from 'lucide-react' import ProjectPanel from './panels/ProjectPanel' import ConversationPanel from './panels/ConversationPanel' import ModelsPanel from './panels/ModelsPanel' import AgentsPanel from './panels/AgentsPanel' import ToolsPanel from './panels/ToolsPanel' import SettingsPanel from './panels/SettingsPanel' const TABS = [ { id: 'project', label: '專案', icon: FolderKanban, Panel: ProjectPanel }, { id: 'conversation', label: '對話', icon: SlidersHorizontal, Panel: ConversationPanel }, { id: 'models', label: '模型', icon: Server, Panel: ModelsPanel }, { id: 'agents', label: 'Agent', icon: Bot, Panel: AgentsPanel }, { id: 'tools', label: '工具', icon: Wrench, Panel: ToolsPanel }, { id: 'settings', label: '設定', icon: Settings, Panel: SettingsPanel }, ] /** * 側邊欄:所有設定與操作都集中在這裡。 * - 桌面(md 以上):固定在左側,可收合 * - 行動版:抽屜,從左側滑出,點遮罩或 X 關閉 */ export default function Sidebar({ tab, setTab, mobileOpen, onCloseMobile, desktopCollapsed, onCollapseDesktop }) { const Active = (TABS.find((t) => t.id === tab) || TABS[0]).Panel return ( <> {/* 行動版遮罩 */}
> ) }