<script setup lang="ts">
import type { HTMLAttributes } from "vue"
import type { AvatarVariants } from "."
import { AvatarRoot } from "reka-ui"
import { cn } from "@/lib/utils"
import { avatarVariants } from "."

export interface AvatarProps {
  size?: AvatarVariants["size"]
  class?: HTMLAttributes["class"]
}

const props = defineProps<AvatarProps>()
</script>

<template>
  <AvatarRoot :class="cn(avatarVariants({ size }), props.class)">
    <slot />
  </AvatarRoot>
</template>
