Created
December 5, 2024 08:20
-
-
Save dwickstrom/bde4846d4f6680142bf5847da39d81bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const riskLevelNumberToColorScheme = (s: number) => | |
s === 1 ? "blue" | |
: s === 2 ? "teal" | |
: s === 3 ? "purple" | |
: s === 4 ? "yellow" | |
: /* else */ "red" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment