<script lang="ts" setup>
import type { ItemProps } from 'vuetify/composables/item'

interface Props {
  menuList?: ItemProps[]
  itemProps?: boolean
}

const props = defineProps<Props>()
</script>

<template>
  <IconBtn>
    <VIcon icon="mdi-dots-vertical" />

    <VMenu
      v-if="props.menuList"
      activator="parent"
    >
      <VList
        density="compact"
        :items="props.menuList"
        :item-props="props.itemProps"
      />
    </VMenu>
  </IconBtn>
</template>
