import React from 'react'; import { cn } from '../../lib/utils'; import { AGENT_ICON_VISUALS, resolveAgentIconKey, type AgentIconKey, type AgentIconSource, } from '../../domain/agentIcon'; export type { AgentIconKey, AgentIconSource }; export const AgentIconBadge: React.FC<{ agent: AgentIconSource | 'add-more'; size?: 'xs' | 'sm' | 'md' | 'lg'; variant?: 'plain' | 'badge'; className?: string; }> = ({ agent, size = 'md', variant = 'badge', className }) => { const iconKey = resolveAgentIconKey(agent); const visual = AGENT_ICON_VISUALS[iconKey]; const badgeSize = size === 'xs' ? 'h-4 w-4 rounded-sm' : size === 'sm' ? 'h-7 w-7 rounded-lg' : size === 'lg' ? 'h-10 w-10 rounded-xl' : 'h-8 w-8 rounded-lg'; const imageSize = size === 'xs' ? 'h-3.5 w-3.5' : size === 'sm' ? 'h-3.5 w-3.5' : size === 'lg' ? 'h-5 w-5' : 'h-4 w-4'; if (variant === 'plain') { return (