// Shared numeric threshold → color mapping.
import { statusColors } from '../tokens'

/** Green when pass rate ≥ 80%, orange between 50–80%, red below 50%. */
export function passRateColor(rate: number): string {
  if (rate >= 0.8) return statusColors.completed
  if (rate >= 0.5) return '#faad14'
  return statusColors.failed
}
