"use client"; const nodeTemplates = [ { type: "image", label: "Bild", icon: "🖼️", category: "Quelle" }, { type: "text", label: "Text", icon: "📝", category: "Quelle" }, { type: "prompt", label: "Prompt", icon: "✨", category: "Quelle" }, { type: "note", label: "Notiz", icon: "📌", category: "Layout" }, { type: "frame", label: "Frame", icon: "🖥️", category: "Layout" }, { type: "group", label: "Gruppe", icon: "📁", category: "Layout" }, { type: "compare", label: "Vergleich", icon: "🔀", category: "Layout" }, ] as const; const categories = [...new Set(nodeTemplates.map((template) => template.category))]; function SidebarItem({ type, label, icon, }: { type: string; label: string; icon: string; }) { const onDragStart = (event: React.DragEvent) => { event.dataTransfer.setData("application/lemonspace-node-type", type); event.dataTransfer.effectAllowed = "move"; }; return (