<template>
  <action-menu
    :items="items"
    :text="$t('dataset.actions')"
    @create="$emit('create')"
    @upload="$emit('upload')"
    @download="$emit('download')"
  />
</template>

<script lang="ts">
import Vue from 'vue'
import ActionMenu from '@/components/molecules/ActionMenu.vue'

export default Vue.extend({
  components: {
    ActionMenu
  },

  computed: {
    items() {
        return [
        {
          title: this.$t('labels.createLabel'),
          icon: 'mdi-pencil',
          event: 'create'
        },
        {
          title: this.$t('labels.importLabels'),
          icon: 'mdi-upload',
          event: 'upload'
        },
        {
          title: this.$t('labels.exportLabels'),
          icon: 'mdi-download',
          event: 'download'
        }
      ]
    }
  }
})
</script>
