import { LayoutDashboard, Workflow, Database, FileText, Activity, Bookmark, Boxes, Settings, type LucideIcon, } from "lucide-react"; import { cn } from "../ui"; export type ViewKey = "home" | "studio" | "kb" | "report" | "runs" | "memory" | "market" | "admin"; interface Item { key: ViewKey; label: string; icon: LucideIcon; group?: string; ready?: boolean; } const ITEMS: Item[] = [ { key: "home", label: "工作台", icon: LayoutDashboard, ready: true }, { key: "studio", label: "编排", icon: Workflow, group: "BUILD", ready: true }, { key: "kb", label: "知识库", icon: Database, group: "BUILD", ready: true }, { key: "report", label: "报告", icon: FileText, group: "BUILD", ready: true }, { key: "runs", label: "运行", icon: Activity, group: "RUN", ready: true }, { key: "memory", label: "记忆", icon: Bookmark, group: "MANAGE", ready: true }, { key: "market", label: "市场", icon: Boxes, group: "MANAGE" }, { key: "admin", label: "管理", icon: Settings, group: "MANAGE" }, ]; // 左导航:深色,激活态紫色高亮 + 左侧光条,描线图标。 export function LeftNav({ active, onSelect }: { active: ViewKey; onSelect: (v: ViewKey) => void }) { let lastGroup: string | undefined; return ( ); }