import { getImageProps } from "next/image"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { cn } from "@/lib/utils"; type CommentAvatarProps = { name: string; image?: string | null; className?: string; }; const CommentAvatar = ({ name, image, className }: CommentAvatarProps) => ( {image && ( )} {name.charAt(0).toUpperCase()} ); export { CommentAvatar };