<template>
  <div class="legend-col">
    <div class="legend-mark" :style="{ background: props.color }"></div>
    <span class="legend-name">{{ props.name }}</span>
    <div class="legend-divider"></div>
    <span class="legend-count">{{ props.count }}</span>
  </div>
</template>

<script setup lang="ts">
  const props = defineProps<{
    color: string;
    name: string;
    count: string;
  }>();
</script>

<style scoped>
  .legend-col {
    width: 120px;
    height: 22px;
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .legend-mark {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
  }

  .legend-name {
    font-size: 14px;
    font-weight: 400;
    color: #6d6d6d;
  }

  .legend-divider {
    width: 1px;
    height: 12px;
    margin: 0 8px;
    background: #d9d9d9;
  }

  .legend-count {
    font-size: 14px;
    color: #bdbdbd;
  }
</style>
