+ {[
+ { label: "Easy", count: solved.easy, color: "bg-emerald-500", text: "text-emerald-400", total: 100 },
+ { label: "Medium", count: solved.medium, color: "bg-amber-500", text: "text-amber-400", total: 100 },
+ { label: "Hard", count: solved.hard, color: "bg-rose-500", text: "text-rose-400", total: 100 },
+ ].map(({ label, count, color, text, total }) => (
+
+
+ {label}
+
+ {loading ? "—" : count} / {total}
+
+
+
+
+ ))}
+