import { DragEvent } from 'react'; import { NodeType } from '../../../lib/canvas/schema'; interface PaletteItem { type: NodeType; label: string; icon: string; description: string; } const PALETTE_ITEMS: PaletteItem[] = [ { type: 'model', label: 'Model', icon: '📦', description: 'NX model file' }, { type: 'solver', label: 'Solver', icon: '⚙️', description: 'Nastran solution' }, { type: 'designVar', label: 'Design Variable', icon: '📐', description: 'Parameter to vary' }, { type: 'extractor', label: 'Extractor', icon: '🔬', description: 'Physics extraction' }, { type: 'objective', label: 'Objective', icon: '🎯', description: 'Optimization goal' }, { type: 'constraint', label: 'Constraint', icon: '🚧', description: 'Limit condition' }, { type: 'algorithm', label: 'Algorithm', icon: '🧠', description: 'Optimization method' }, { type: 'surrogate', label: 'Surrogate', icon: '🚀', description: 'Neural acceleration' }, ]; export function NodePalette() { const onDragStart = (event: DragEvent, nodeType: NodeType) => { event.dataTransfer.setData('application/reactflow', nodeType); event.dataTransfer.effectAllowed = 'move'; }; return (