manifold/common/categories.ts
2022-05-12 11:18:44 -04:00

26 lines
648 B
TypeScript

export const CATEGORIES = {
politics: 'Politics',
technology: 'Technology',
sports: 'Sports',
gaming: 'Gaming',
manifold: 'Manifold',
science: 'Science',
world: 'World',
fun: 'Fun',
personal: 'Personal',
economics: 'Economics',
crypto: 'Crypto',
health: 'Health',
// entertainment: 'Entertainment',
// society: 'Society',
// friends: 'Friends / Community',
// business: 'Business',
// charity: 'Charities / Non-profits',
} as { [category: string]: string }
export const TO_CATEGORY = Object.fromEntries(
Object.entries(CATEGORIES).map(([k, v]) => [v, k])
)
export const CATEGORY_LIST = Object.keys(CATEGORIES)