import { cn } from "@/lib/utils" import { FileTextIcon, type LucideIcon } from "lucide-react" import * as LucideIcons from "lucide-react" const lucideIconComponents = LucideIcons as unknown as Record export function WorkflowNodeIcon({ icon, size = "md", className, }: { icon?: string size?: "sm" | "md" className?: string }) { const Icon = icon ? lucideIconComponents[icon] ?? FileTextIcon : FileTextIcon return ( ) }