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

interface Props extends AvatarRootProps {
  class?: string;
}

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

<template>
  <AvatarRoot
    v-bind="props"
    :class="
      cn(
        'relative flex h-8 w-8 shrink-0 overflow-hidden rounded-full',
        props.class,
      )
    "
  >
    <slot />
  </AvatarRoot>
</template>
