<script setup lang="ts">
import { DropdownMenuRadioGroup as ShadcnDropdownMenuRadioGroup } from '@/components/core/dropdown-menu';
import type {
  UiDropdownMenuRadioGroupProps,
  UiDropdownMenuRadioGroupEmits,
} from './types';

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

const props = defineProps<UiDropdownMenuRadioGroupProps>();
const emit = defineEmits<UiDropdownMenuRadioGroupEmits>();
</script>

<template>
  <ShadcnDropdownMenuRadioGroup
    :model-value="props.modelValue"
    @update:model-value="emit('update:modelValue', $event as string)"
  >
    <slot />
  </ShadcnDropdownMenuRadioGroup>
</template>
