<script setup lang="ts">
import { Dialog as ShadcnDialog } from '@/components/core/dialog';

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

/**
 * Public API: **`v-model:model`** / prop **`model`**. Root is core **`Dialog`** (`DialogRoot`) with **`modal`** **`true`**.
 * **`UiAlertDialogContent`** supplies **`role="alertdialog"`** and alert-specific behavior (outside dismiss, cancel focus).
 */
const model = defineModel<boolean>('model', { default: false });
</script>

<template>
  <ShadcnDialog v-model:open="model" modal>
    <slot />
  </ShadcnDialog>
</template>
