<script setup lang="ts">
import type { Component } from 'vue'
import classes from './ToolBar.module.css'

defineProps<{
  icon: string | Component
}>()
</script>

<template>
  <button type="button" :class="[classes.toolButton, classes.toolbarControl]">
    <component :is="icon" />
  </button>
</template>

<style scoped></style>
