'use client'; import { cn } from '@/utils/cn'; import type { IServiceProfile } from '@openpanel/db'; import { AvatarImage } from '@radix-ui/react-avatar'; import type { VariantProps } from 'class-variance-authority'; import { cva } from 'class-variance-authority'; import { Avatar, AvatarFallback } from '../ui/avatar'; interface ProfileAvatarProps extends VariantProps, Partial> { className?: string; } const variants = cva('', { variants: { size: { default: 'h-12 w-12 rounded-full [&>span]:rounded-full', sm: 'h-6 w-6 rounded [&>span]:rounded', xs: 'h-4 w-4 rounded [&>span]:rounded', }, }, defaultVariants: { size: 'default', }, }); export function ProfileAvatar({ avatar, first_name, className, size, }: ProfileAvatarProps) { return ( {avatar && } {first_name?.at(0) ?? '🫣'} ); }