<script setup lang="ts">
import { AvatarFallback, type AvatarFallbackProps } from "reka-ui";
import { cn } from "@/lib/utils";

interface Props extends AvatarFallbackProps {
  class?: string;
}

const props = defineProps<Props>();
</script>

<template>
  <AvatarFallback
    v-bind="props"
    :class="
      cn(
        'bg-muted flex h-full w-full items-center justify-center rounded-full text-sm font-medium',
        props.class,
      )
    "
  >
    <slot />
  </AvatarFallback>
</template>
