import { HelpCircle, Zap, CheckCircle, FileText, Layout } from 'lucide-react' interface NodeSummaryProps { node?: { id: string; type: string; question?: string; title?: string; description?: string } | null flowName?: string flowType?: string nodeCount?: number } const NODE_ICONS: Record = { decision: HelpCircle, action: Zap, solution: CheckCircle, } const NODE_COLORS: Record = { decision: 'text-blue-400', action: 'text-yellow-400', solution: 'text-green-400', } export function NodeSummary({ node, flowName, flowType, nodeCount }: NodeSummaryProps) { if (!node) { return (
{flowName || 'Untitled Flow'}
{flowType || 'flow'} {nodeCount !== undefined && {nodeCount} nodes}
) } const Icon = NODE_ICONS[node.type] || FileText const colorClass = NODE_COLORS[node.type] || 'text-muted-foreground' return (
{node.type}

{node.question || node.title || node.id}

{node.description && (

{node.description}

)}
) }