import React from 'react'
import cc from 'classcat'
import { prefix } from '../_utils'
import { color } from '../_utils/branding'
import { Badge } from '../badge'
import { CheckIcon } from '../icon/checkIcon'
import { StyledAvatar } from './Avatar.style'
export type AvatarProps = Readonly<{
className?: string
image?: string
alt?: string
isSmall?: boolean
isMedium?: boolean
isLarge?: boolean
isIdChecked?: boolean
unreadNotificationsCount?: string
unreadNotificationsCountAriaLabel?: string
}>
const IdCheckBadge = (
)
const unreadNotificationsBadge = (
unreadNotificationsCount: string,
unreadNotificationsCountAriaLabel: string,
) => (
{unreadNotificationsCount}
)
export const Avatar = ({
isSmall,
isMedium,
isLarge,
className,
image,
alt = '',
isIdChecked,
unreadNotificationsCount,
unreadNotificationsCountAriaLabel,
}: AvatarProps) => (
{image &&
}
{unreadNotificationsCount &&
unreadNotificationsBadge(unreadNotificationsCount, unreadNotificationsCountAriaLabel)}
{isIdChecked && IdCheckBadge}
)