interface UnitTypeBadgeProps { type: string; count: number; } function UnitTypeBadge({ type, count }: UnitTypeBadgeProps) { if (count === 0) return null; return (
{count}
{type}