<script setup lang="ts">
import { Drawer as ShadcnDrawer } from '@/components/core/drawer';
import type { UiDrawerProps } from './types';

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

const props = withDefaults(defineProps<UiDrawerProps>(), {
  modal: true,
});
const open = defineModel<boolean>('open');
</script>

<template>
  <ShadcnDrawer v-model:open="open" :modal="props.modal">
    <slot />
  </ShadcnDrawer>
</template>
