import { skillAccentColor } from "@/lib/skill-create"; /** * Minimal shape needed to render a skill's square icon. `DiscoveryCard` * (store) and the agent-skills row model both satisfy this, so the icon can be * shared without pulling the whole store page into other modules. */ export interface SkillIconCard { key: string; name: string; slug?: string | null; iconUrl: string | null; color: string | null; } export function SkillCardIcon({ card, size = 36 }: { card: SkillIconCard; size?: number }) { if (card.iconUrl) { return ( ); } const accent = skillAccentColor(card.key, card.color); const letter = (card.slug || card.name || "?").trim().charAt(0).toUpperCase(); return ( ); }