<script setup lang="ts">
import { ContextMenuLabel } from "reka-ui";
import type { HTMLAttributes } from "vue";
import { cn } from "@/lib/utils";

interface Props {
  class?: HTMLAttributes["class"];
  inset?: boolean;
}

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

<template>
  <ContextMenuLabel
    data-slot="context-menu-label"
    :class="cn('px-2 py-1.5 text-xs font-medium', inset && 'pl-8', props.class)"
  >
    <slot />
  </ContextMenuLabel>
</template>
