// SPDX-License-Identifier: MIT // Copyright contributors to the openassistant project import { Icon } from "@iconify/react"; import { Avatar, Badge } from "@heroui/react"; import { ReactNode } from "react"; export const AvatarBadge = ({ avatar, hasFailed, }: { avatar: ReactNode | string; hasFailed: boolean; }) => ( } isInvisible={!hasFailed} placement="bottom-right" shape="circle" > {typeof avatar === 'string' ? ( ) : ( )} );