This shit aint working but juuuust incase I need the code I'll keep it here

This commit is contained in:
2025-10-16 11:25:03 +02:00
parent 8895bc9c9d
commit c6b952bfb5
10 changed files with 209 additions and 149 deletions

View File

@@ -10,6 +10,6 @@ const baseCategories = [
] as const;
export const categoryKeys: Category[] = baseCategories.map(c => c.key);
export const categoryKeys: Category[] = baseCategories.map(c => c.key) as Category[];
export const categories: { label: string; key: Category }[] = baseCategories.map(c => ({ label: c.label, key: c.key }));
export const categoryTitles: Record<Category, string> = Object.fromEntries(baseCategories.map(c => [c.key, c.title])) as Record<Category, string>;