aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils.ts')
-rw-r--r--src/lib/utils.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
index d4d8119..e2e005b 100644
--- a/src/lib/utils.ts
+++ b/src/lib/utils.ts
@@ -35,3 +35,13 @@ export function getHeadingMargin(depth: number): string {
}
return margins[depth] || ''
}
+export function capitalizeFirstLetter(val: string): string {
+ return String(val).charAt(0).toUpperCase() + String(val).slice(1);
+}
+
+export const iconMappings = {
+ "workshop": "lucide:hammer",
+ "competition": "lucide:trophy",
+ "game": "lucide:gamepad-2",
+ "quiz": "lucide:brain"
+}