<template>
  <Modal :isModalOpen="gmPanelStore.isOpen" :modal-width="1000" :modal-height="650">
    <template #modalHeader>
      <h3 class="modal-title">GM Panel</h3>
      <div class="gm-selector">
        <button class="btn-cyan">General</button>
        <button class="btn-cyan">Users</button>
        <button class="btn-cyan">Chats</button>
        <button class="btn-cyan active">Asset manager</button>
      </div>
    </template>
    <template #modalBody>
      <div class="container gm-panel">
        <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>

<style lang="scss" scoped>
@import '@/assets/scss/main';

.gm-selector {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;

  button {
    padding: 6px 15px;
    min-width: 100px;
  }
}
</style>
