mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-28 22:17:48 +02:00
26 lines
737 B
TypeScript
26 lines
737 B
TypeScript
"use client";
|
|
|
|
import { ActorAvatar as ActorAvatarBase } from "@multica/ui/components/common/actor-avatar";
|
|
import { useActorName } from "@multica/core/workspace/hooks";
|
|
|
|
interface ActorAvatarProps {
|
|
actorType: string;
|
|
actorId: string;
|
|
size?: number;
|
|
className?: string;
|
|
}
|
|
|
|
export function ActorAvatar({ actorType, actorId, size, className }: ActorAvatarProps) {
|
|
const { getActorName, getActorInitials, getActorAvatarUrl } = useActorName();
|
|
return (
|
|
<ActorAvatarBase
|
|
name={getActorName(actorType, actorId)}
|
|
initials={getActorInitials(actorType, actorId)}
|
|
avatarUrl={getActorAvatarUrl(actorType, actorId)}
|
|
isAgent={actorType === "agent"}
|
|
size={size}
|
|
className={className}
|
|
/>
|
|
);
|
|
}
|