"use client"; import { CharacterAvatar, UserMessageAvatar } from "@/app/_components"; import { useActiveCharacter } from "@/providers/character-provider"; export interface MessageAvatarProps { isFromAI: boolean; userAvatarUrl?: string | null; onClick?: () => void; } const AVATAR_CLASS_NAME = "size-(--chat-avatar-size,43px) ring-2 ring-(--color-avatar-border,#fbf3f5) shadow-(--shadow-input-box,0_1px_2px_rgba(0,0,0,0.1))"; export function MessageAvatar({ isFromAI, userAvatarUrl, onClick, }: MessageAvatarProps) { const character = useActiveCharacter(); if (isFromAI) { if (onClick) { return ( ); } return ( ); } if (onClick) { return ( ); } return ; }