- <template>
- <slot v-if="isHost"></slot>
- </template>
-
- <script setup lang="ts">
- import { computed } from 'vue'
- import { useRoomStore } from '@/stores'
-
- const props = defineProps<{
- roomId?: string
- }>()
-
- const roomStore = useRoomStore()
- const isHost = computed(() => roomStore.isHost)
- </script>
|