/* eslint-disable @next/next/no-img-element */ // Why disabled: // avatars.dicebear.com provides svg avatars // next/image needs dangerouslyAllowSVG option for that import React, { ReactNode } from 'react'; import BaseIcon from "./BaseIcon"; import {mdiAccountCircleOutline} from "@mdi/js"; type Props = { username: string; avatar?: string | null; image?: object | null; api?: string; className?: string; children?: ReactNode; }; export default function UserAvatar({ username, image, avatar, className = '', children, }: Props) { const avatarImage = (image && image[0]) ? `${image[0].publicUrl}` : '#'; return (