import { Avatar as HeroUiAvatar } from '@heroui/react'; import { User } from 'lucide-react'; import Avatar from 'boring-avatars'; import Config from '@/config/config'; const apiServer = Config.apiServer; type Props = { size: number; username: string | undefined | null; avatarPath?: string | undefined | null; }; export default function UserAvatar({ size, username, avatarPath }: Props) { if (username) { if (avatarPath) { return ; } else { return ( ); } } else { return ; } }