"use client"; interface Props { score: number; satA?: number; satB?: number; } export default function FairnessScore({ score, satA, satB }: Props) { const pct = Math.min(100, Math.max(0, score)); const color = pct >= 80 ? "text-[#B7A6FB]" : pct >= 60 ? "text-amber-400" : "text-red-400"; const barColor = pct >= 80 ? "bg-[#B7A6FB] shadow-[0_0_8px_#B7A6FB]" : pct >= 60 ? "bg-amber-400" : "bg-red-400"; return (
Fairness Score
{pct.toFixed(0)} /100