Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 3x 110x 550x | const LEVELS = [
{ label: "Level 5", color: "#2bcd9c" },
{ label: "Level 4", color: "#fe9a71" },
{ label: "Level 3", color: "#93ebff" },
{ label: "Level 2", color: "#feaef2" },
{ label: "Level 1", color: "#c99ffe" },
];
export default function LevelLegend() {
return (
<div className="concept-graph-legend">
{LEVELS.map((level, i) => (
<div key={i} className="concept-graph-legend-row">
<div
className="concept-graph-legend-swatch"
style={{ background: level.color }}
/>
<span className="concept-graph-legend-label">{level.label}</span>
</div>
))}
</div>
);
}
|