<script lang="ts" setup>
import ModalCom from '@/components/Modal/index.vue'
import { useModal } from '../../hooks/modal'

const { modalRef, showDetails, title, content, contentSlot } = useModal()
</script>

<template>
  <modal-com ref="modalRef" v-model:show="showDetails" :title="title">
    <div>
      <template v-if="content">
        <div>{{ content }}11111</div>
      </template>
      <content-slot v-else-if="contentSlot"></content-slot>
    </div>
  </modal-com>
</template>

<style lang="scss" scoped></style>
