Modal.vue 441 B

12345678910111213141516171819202122232425
  1. <template>
  2. <SmartModal v-if="show" :title="t('team.select_a_team')" @close="hideModal">
  3. <template #body>
  4. <Teams :modal="true" />
  5. </template>
  6. </SmartModal>
  7. </template>
  8. <script setup lang="ts">
  9. import { useI18n } from "~/helpers/utils/composables"
  10. const t = useI18n()
  11. defineProps<{
  12. show: Boolean
  13. }>()
  14. const emit = defineEmits<{
  15. (e: "hide-modal"): void
  16. }>()
  17. const hideModal = () => {
  18. emit("hide-modal")
  19. }
  20. </script>