import type { ReactNode } from "react" import { cn } from "@/lib/utils" import type { AIWorkflowNodeSpec } from "@/lib/api/admin" import { getWorkflowNodeMeta } from "./workflow-node-meta" import { WorkflowNodeIcon } from "./workflow-node-icon" export function WorkflowNodeCard({ nodeType, title, spec, selected, width = "normal", children, }: { nodeType: string title: string spec?: AIWorkflowNodeSpec selected: boolean width?: "normal" | "wide" children: ReactNode }) { const meta = getWorkflowNodeMeta(nodeType) return (