This shit aint working but juuuust incase I need the code I'll keep it here
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user