Files
website/shared/utils/medium.ts
T
2026-09-23 11:44:36 +02:00

10 lines
343 B
TypeScript

import type { Medium } from '../types/review'
export const MEDIUMS: Record<Medium, { label: string, creator: string }> = {
book: { label: 'Book', creator: 'Author' },
movie: { label: 'Movie', creator: 'Director' },
album: { label: 'Album', creator: 'Artist' }
}
export const MEDIUM_KEYS = Object.keys(MEDIUMS) as [Medium, ...Medium[]]