Add years menu (#202)

This commit is contained in:
Jonathan Virga
2024-04-23 02:06:18 +02:00
committed by GitHub
parent e7f5f5871e
commit 0488f398c1
8 changed files with 159 additions and 7 deletions

View File

@@ -166,6 +166,12 @@ export const SAMPLE_GENRES = [
];
export const randomGenre = () => SAMPLE_GENRES[randomInt(SAMPLE_GENRES.length)];
export const aYear = (year: string) => ({ id: year, year });
export const Y2024 = aYear("2024");
export const Y2023 = aYear("2023");
export const Y1969 = aYear("1969");
export function aTrack(fields: Partial<Track> = {}): Track {
const id = uuid();
const artist = anArtist();