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

interface Props extends DropdownMenuLabelProps {
  class?: string;
  inset?: boolean;
}

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

<template>
  <DropdownMenuLabel
    v-bind="props"
    :class="cn('px-2 py-1.5 text-xs font-medium', inset && 'pl-8', props.class)"
  >
    <slot />
  </DropdownMenuLabel>
</template>
