type LegendItemProps = {
  color: string;
  count: number;
  label: string;
};

function LegendItem({ color, count, label }: LegendItemProps) {
  return (
    <span className="flex items-center gap-1.5">
      <span className={`h-2 w-2 rounded-full ${color}`} />
      {count} {label}
    </span>
  );
}

export default LegendItem;
