<template>
  <img :src="props.src" alt="" class="toolbarIcon" :class="props.active ? 'active' : ''" />
</template>
<script lang="ts" setup>
  const props = defineProps<{ active: boolean; src: string }>();
</script>
<style scoped>
  .toolbarIcon {
    width: 24px;
    height: 24px;
    padding: 4px;
    cursor: pointer;
    margin-right: 20px;
    &.active {
      background: #f0f2f5;
    }
  }
</style>
