import { Badge } from "@/components/ui/badge"

export default function RfmBadge({ grade = "C" as const }: { grade: "S" | "A" | "B" | "C" | "D" }) {
  const color =
    grade === "S"
      ? "bg-emerald-100 text-emerald-800"
      : grade === "A"
      ? "bg-green-100 text-green-800"
      : grade === "B"
      ? "bg-blue-100 text-blue-800"
      : grade === "C"
      ? "bg-amber-100 text-amber-800"
      : "bg-red-100 text-red-800"
  return <Badge className={color}>RFM {grade}</Badge>
}
