10 lines
343 B
TypeScript
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[]]
|