import type { AgentType } from "@/lib/types" import { AGENT_COLORS } from "@/lib/types" import { cn } from "@/lib/utils" import { ClaudeCode, Cline, Codex, GeminiCLI, OpenClaw, OpenCode, } from "@lobehub/icons" interface AgentIconProps { agentType: AgentType className?: string } // eslint-disable-next-line @typescript-eslint/no-explicit-any type AnyIcon = React.ComponentType const COLOR_ICONS: Partial> = { claude_code: ClaudeCode.Color, codex: Codex.Color, gemini: GeminiCLI.Color, open_claw: OpenClaw.Color, } const MONO_ICONS: Partial> = { open_code: OpenCode, cline: Cline, } // Text-color versions for Mono icons const AGENT_TEXT_COLORS: Partial> = {} export function AgentIcon({ agentType, className }: AgentIconProps) { const ColorIcon = COLOR_ICONS[agentType] if (ColorIcon) { return ( ) } const MonoIcon = MONO_ICONS[agentType] if (MonoIcon) { return ( ) } return ( ) }