<script setup lang="ts">
import type { HTMLAttributes } from 'vue';

import { cn } from '#/lib/utils';

import { type BadgeVariants, badgeVariants } from './badge';

const props = defineProps<{
  class?: HTMLAttributes['class'];
  variant?: BadgeVariants['variant'];
}>();
</script>

<template>
  <div :class="cn(badgeVariants({ variant }), props.class)">
    <slot></slot>
  </div>
</template>
