<script setup lang="ts">
import type { DropdownMenuSubEmits, DropdownMenuSubProps } from "reka-ui"
import { DropdownMenuSub, useForwardPropsEmits } from "reka-ui"

export type DropdownMenuSubComponentProps = DropdownMenuSubProps

const props = defineProps<DropdownMenuSubComponentProps>()
const emits = defineEmits<DropdownMenuSubEmits>()

const forwarded = useForwardPropsEmits(props, emits)
</script>

<template>
  <DropdownMenuSub v-bind="forwarded">
    <slot />
  </DropdownMenuSub>
</template>
