import { cn, generateAvatarColor, getInitials } from '../lib/utils'; interface AvatarProps { seed: string; name: string; size?: 'sm' | 'md' | 'lg' | 'xl'; className?: string; showOnline?: boolean; isOnline?: boolean; } export function Avatar({ seed, name, size = 'md', className, showOnline = false, isOnline = false, }: AvatarProps) { const sizeClasses = { sm: 'w-6 h-6 text-xs', md: 'w-8 h-8 text-sm', lg: 'w-10 h-10 text-base', xl: 'w-12 h-12 text-lg', }; const dotSizeClasses = { sm: 'w-1.5 h-1.5 -bottom-0 -right-0', md: 'w-2 h-2 -bottom-0.5 -right-0.5', lg: 'w-2.5 h-2.5 -bottom-0.5 -right-0.5', xl: 'w-3 h-3 -bottom-1 -right-1', }; const bgColor = generateAvatarColor(seed); const initials = getInitials(name); return (