"use client"; import { Handle, Position, type NodeProps } from "@xyflow/react"; import { AlertTriangle } from "lucide-react"; import { lookup } from "@/lib/node-catalog"; import { cn } from "@/lib/utils"; import type { FlowNodeData } from "@/lib/pipeline-graph"; export function FlowNode({ data, selected }: NodeProps) { const pn = (data as FlowNodeData).pipelineNode; const entry = lookup(pn.type); const Icon = entry?.icon ?? AlertTriangle; const outputs = entry?.outputs ?? 1; const isTrigger = pn.type === "flow-nodes-base.trigger"; return (