import { AvatarPlaceholder } from '@self.id/framework'
import { Avatar, Box, Spinner, Text } from 'grommet'
type Props = {
did?: string
label: string
loading?: boolean
src?: string | null
}
export default function DisplayAvatar({ did, label, loading, src }: Props) {
const avatar = loading ? (
) : src ? (
) : (
)
return (
{avatar}
{label}
)
}