Modal.vue 467 B

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