<template>
  <div>
    <base-item
      :item="{
        icon:'mdi-view-dashboard',
        title: 'Startseite',
        to: '/'
      }"
    />
    <base-item-group
      v-if="isMaster"
      :item="{
        group: '/management',
        icon: 'fa-user-crown',
        title: 'Admin',
        children: [
          {
            title: 'Wettkampforte',
            to: 'places',
            icon: 'mdi-home-group',
          },
          {
            title: 'Hauptevents',
            to: 'events',
            icon: 'mdi-calendar-multiple',
          },
          {
            title: 'Vereine',
            to: 'clubs',
            icon: 'mdi-account-supervisor-circle',
          },
          {
            title: 'Disziplinen',
            to: 'disciplines',
            icon: 'fa-dumbbell',
          },
          {
            title: 'Personen verwalten',
            to: 'people',
            icon: 'mdi-account-edit',
          },
          {
            title: 'Personen zusammenführen',
            to: 'merge',
            icon: 'mdi-account-switch',
          },
          {
            title: 'Turnportalabfrage',
            to: 'turnportal',
            icon: 'mdi-account-question',
          },
          {
            title: 'Serverübersicht',
            to: 'server',
            icon: 'mdi-server',
          },
        ],
      }"
    />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Menu',

  computed: {
    ...mapGetters(['profile', 'isMaster'])
  }
}
</script>

<style scoped>

</style>
