import { Clapperboard, Folder, FolderOpen, Image as ImageIcon, Layers3, Music2, Palette, PanelTop, Pencil, Type, UploadCloud, UserRound, Video } from "lucide-react"; import { registerAddNodeMenuCommands, type AddNodeMenuCommand } from "@/lib/canvas/tool-registry"; export const addNodeMenuCommands: AddNodeMenuCommand[] = [ // 项目级动作不占用节点网格,保证 8 个节点稳定保持四列两行。 { id: "style", label: "项目画风", icon: , section: "project", defaultOrder: 10, applicable: (ctx) => !ctx.isProjectLinked, run: (ctx) => ctx.handlers.onChooseStyle() }, // 创作节点 { id: "text", label: "文本", icon: , section: "node", defaultOrder: 10, run: (ctx) => ctx.handlers.onAddText() }, { id: "drawing", label: "绘图", icon: , section: "node", defaultOrder: 20, run: (ctx) => ctx.handlers.onAddDrawing() }, { id: "script", label: "分镜脚本", icon: , badge: "核心", section: "node", defaultOrder: 30, run: (ctx) => ctx.handlers.onAddScript() }, { id: "frame", label: "背板", icon: , section: "node", defaultOrder: 40, applicable: (ctx) => ctx.workspaceMode !== "simple", run: (ctx) => ctx.handlers.onAddFrame() }, { id: "folder", label: "文件夹", icon: , badge: "6 款", section: "node", defaultOrder: 45, run: (ctx) => ctx.handlers.onAddFolder() }, { id: "image", label: "图片", icon: , section: "node", defaultOrder: 50, run: (ctx) => ctx.handlers.onAddImage() }, { id: "video", label: "视频", icon: