<template>
  <ActionButton v-if="type === 'actionButton'" :item="item" />
  <StatefulButton v-if="type === 'statefulButton'" :item="item" />
  <ToggleButton v-if="type === 'toggleButton'" :item="item" />
  <CToolButton v-if="type === 'toolButton'" :item="item" />
</template>

<script setup>
const { item } = defineProps(['item'])
const { type } = item
</script>

<style lang="scss">
.custom-button {
  min-width: 30px;
  height: 30px;
  .img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
  }
  .text {
    margin-left: 8px;
  }
}
</style>