<template>
  <Modal :isModalOpen="gmPanelStore.isOpen" @modal:close="() => gmPanelStore.toggle()" :modal-width="1000" :modal-height="650">
    <template #modalHeader>
      <h3 class="m-0 font-medium shrink-0">GM Panel</h3>
      <div class="flex gap-1.5 flex-wrap">
        <button class="btn-cyan py-1.5 px-[15px] min-w-[100px]">General</button>
        <button class="btn-cyan py-1.5 px-[15px] min-w-[100px]">Users</button>
        <button class="btn-cyan py-1.5 px-[15px] min-w-[100px]">Chats</button>
        <button class="btn-cyan active py-1.5 px-[15px] min-w-[100px]">Asset manager</button>
      </div>
    </template>
    <template #modalBody>
      <div class="h-full margin-0">
        <AssetManager v-if="toggle == 'asset-manager'" />
      </div>
    </template>
  </Modal>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import Modal from '@/components/utilities/Modal.vue'
import AssetManager from '@/components/utilities/assetManager/AssetManager.vue'
import { useGmPanelStore } from '@/stores/gmPanel'

const gmPanelStore = useGmPanelStore()

let toggle = ref('asset-manager')
</script>
