import Image from "next/image"; import React from "react"; interface AvatarProps { image?: string; username?: string; size?: number; gradient?: boolean; className?: string; placeholderType?: "blur" | "empty" | undefined; } export const Avatar = ({ image, username, size = 45, gradient, className, placeholderType = "blur", }: AvatarProps) => { if (image) return (
avatar
); return (
{username?.charAt(0).toUpperCase()}
); };