<template>
  <div class="stat-item">
    <span class="stat-type" :style="{ color: props.data.color }">
      {{ props.data.label }}
    </span>
    <span class="stat-count">{{ props.data.count }}</span>
  </div>
</template>

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

<style scoped>
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stat-type {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 4px;
  }

  .stat-count {
    font-size: 24px;
    color: #2e2e2e;
    line-height: 32px;
  }
</style>
