import { cn } from '@/lib/utils'; interface AvatarDisplayProps { readonly src: string; readonly alt?: string; readonly className?: string; } export function AvatarDisplay({ src, alt, className }: AvatarDisplayProps) { const isUrl = src.startsWith('http') || src.startsWith('data:') || src.startsWith('/'); if (isUrl) { return ( {alt ); } return ( {src} ); }