"use client"; import { Bot } from "lucide-react"; import { cn } from "@/lib/utils"; import { useActorName } from "@/features/workspace"; interface ActorAvatarProps { actorType: string; actorId: string; size?: number; getName?: (type: string, id: string) => string; getInitials?: (type: string, id: string) => string; className?: string; } function ActorAvatar({ actorType, actorId, size = 20, getName, getInitials, className, }: ActorAvatarProps) { const actorNameHook = useActorName(); const resolveName = getName ?? actorNameHook.getActorName; const resolveInitials = getInitials ?? actorNameHook.getActorInitials; const name = resolveName(actorType, actorId); const initials = resolveInitials(actorType, actorId); const isAgent = actorType === "agent"; return (