import { ChatMarkdown } from "@rakazo/chat-ui/web"; import { BotAvatar } from "@rakazo/ui-web"; export interface DelegatedTaskCardProps { toBotId: string; toBotName: string; color: string; text: string; status?: string; onClick: () => void; } /** * Rich Interactive Card shown in chat when an agent delegates a task to another bot. * Replaces the minimal chip with a status-driven task card. */ export function DelegatedTaskCard({ toBotId, toBotName, color, text, status, onClick, }: DelegatedTaskCardProps) { const isRunning = status === "running" || status === "active"; return (