<script setup lang="ts">
import { useUiAdapter } from '../adapter/useUiAdapter'
defineProps<{ visible: boolean; title: string; modal?: boolean; closable?: boolean }>()
const emit = defineEmits<{ 'update:visible': [value: boolean] }>()
const adapter = useUiAdapter()
</script>
<template><component :is="adapter.components.Dialog" v-bind="$props" @update:visible="emit('update:visible', $event)"><slot /><template #footer><slot name="footer" /></template></component></template>
