"use client"; import { Bot } from "lucide-react"; import { Handle, Position, type Node, type NodeProps } from "@xyflow/react"; import { getAgentTemplate } from "@/lib/agent-templates"; import BaseNodeWrapper from "./base-node-wrapper"; type AgentNodeData = { templateId?: string; canvasId?: string; _status?: string; _statusMessage?: string; }; type AgentNodeType = Node; const DEFAULT_AGENT_TEMPLATE_ID = "campaign-distributor"; function CompactList({ items }: { items: readonly string[] }) { return ( ); } export default function AgentNode({ data, selected }: NodeProps) { const nodeData = data as AgentNodeData; const template = getAgentTemplate(nodeData.templateId ?? DEFAULT_AGENT_TEMPLATE_ID) ?? getAgentTemplate(DEFAULT_AGENT_TEMPLATE_ID); if (!template) { return null; } return (
{template.emoji} {template.name}

{template.description}

Channels

Expected Inputs

Expected Outputs

); }