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