import { Globe, Headset, OctagonX, Play, X } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { NodeType } from './types'; type AddNodePanelProps = { isOpen: boolean; onClose: () => void; onNodeSelect: (nodeType: NodeType) => void; }; const NODE_TYPES = [ { type: NodeType.START_CALL, label: 'Start Call', description: 'Create a start call node', icon: Play }, { type: NodeType.AGENT_NODE, label: 'Agent Node', description: 'Create an agent node', icon: Headset }, { type: NodeType.END_CALL, label: 'End Call', description: 'Create an end call node', icon: OctagonX } ]; const GLOBAL_NODE_TYPES = [ { type: NodeType.GLOBAL_NODE, label: 'Global Node', description: 'Create a global node', icon: Globe } ] export default function AddNodePanel({ isOpen, onNodeSelect, onClose }: AddNodePanelProps) { return (

Add New Node

Agent Nodes

{NODE_TYPES.map((node) => ( ))}

Global Nodes

{GLOBAL_NODE_TYPES.map((node) => ( ))}
); }