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