@@ -165,3 +179,38 @@ function ProgressView({ stats: s }: { stats: Stats }) {
);
}
+
+function SolvedList({ solved }: { solved: Stats["solved"] }) {
+ const [showAll, setShowAll] = useState(false);
+ const rows = showAll ? solved : solved.slice(0, SOLVED_PREVIEW);
+ return (
+
+
+
+ {solved.length > 0 && (
+
+ Open in Problems →
+
+ )}
+
+ {solved.length === 0 && Problems you get Accepted on will be listed here.}
+ {rows.map((p) => (
+
+
+ {problemLabel(p)}
+
+
+ {p.langs.map((l) => LANG_LABEL[l]).join(", ")}
+
+
+ ))}
+ {solved.length > SOLVED_PREVIEW && (
+
+ )}
+
+ );
+}