import { avatarColor, initials } from '../lib/format' import { IconUsers } from './icons' type AvatarSize = 'sm' | 'md' | 'lg' | 'xl' interface AvatarProps { name: string seed: number | string size?: AvatarSize online?: boolean className?: string } const SIZE_CLASSES: Record = { sm: 'h-8 w-8 text-[11px]', md: 'h-10 w-10 text-xs', lg: 'h-12 w-12 text-sm', xl: 'h-16 w-16 text-lg', } export default function Avatar({ name, seed, size = 'md', online = false, className = '' }: AvatarProps) { const background = avatarColor(seed) return ( {online && ( ) } interface GroupAvatarProps { name: string seed: number | string size?: AvatarSize className?: string } export function GroupAvatar({ name, seed, size = 'md', className = '' }: GroupAvatarProps) { const background = avatarColor(seed) return ( ) }