refactor: split into component and use global app store

This commit is contained in:
Pihkaal
2024-10-16 02:01:39 +02:00
parent 2cd8512149
commit 80a63a320c
14 changed files with 474 additions and 386 deletions

7
utils/formatting.ts Normal file
View File

@@ -0,0 +1,7 @@
export const capitalize = (str: string) =>
str.charAt(0).toUpperCase() + str.slice(1);
export const upperCase = (str: string) => str.toUpperCase();
export const arrayToUnion = (array: string[]) =>
array.map((x) => `"${x}"`).join(" | ");