mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-05 10:20:52 +00:00
13 lines
325 B
TypeScript
13 lines
325 B
TypeScript
import { Difficulty } from "@/generated/client";
|
|
|
|
export const getColorClassForDifficulty = (difficulty: Difficulty) => {
|
|
switch (difficulty) {
|
|
case Difficulty.EASY:
|
|
return "text-green-500";
|
|
case Difficulty.MEDIUM:
|
|
return "text-yellow-500";
|
|
case Difficulty.HARD:
|
|
return "text-red-500";
|
|
}
|
|
};
|