<script setup lang="ts">
import { DropdownMenuSubTrigger as ShadcnDropdownMenuSubTrigger } from '@/components/core/dropdown-menu';
import type { UiDropdownMenuSubTriggerProps } from './types';

defineOptions({
  name: 'UiDropdownMenuSubTrigger',
});

const props = withDefaults(defineProps<UiDropdownMenuSubTriggerProps>(), {
  disabled: false,
  inset: false,
  textValue: undefined,
});
</script>

<template>
  <ShadcnDropdownMenuSubTrigger
    :disabled="props.disabled"
    :text-value="props.textValue"
    :inset="props.inset"
  >
    <slot />
  </ShadcnDropdownMenuSubTrigger>
</template>
