'use client'; import * as React from 'react'; import { cn } from '@/lib/utils'; import { cva, VariantProps } from 'class-variance-authority'; import { Avatar as AvatarPrimitive } from 'radix-ui'; const avatarStatusVariants = cva('flex items-center rounded-full size-2 border-2 border-background', { variants: { variant: { online: 'bg-green-600', offline: 'bg-zinc-600 dark:bg-zinc-300', busy: 'bg-yellow-600', away: 'bg-blue-600', }, }, defaultVariants: { variant: 'online', }, }); function Avatar({ className, ...props }: React.ComponentProps) { return ( ); } function AvatarImage({ className, ...props }: React.ComponentProps) { return (
); } function AvatarFallback({ className, ...props }: React.ComponentProps) { return ( ); } function AvatarIndicator({ className, ...props }: React.HTMLAttributes) { return (
); } function AvatarStatus({ className, variant, ...props }: React.HTMLAttributes & VariantProps) { return
; } export { Avatar, AvatarFallback, AvatarImage, AvatarIndicator, AvatarStatus, avatarStatusVariants };