diff --git a/src/mock/albums.json b/src/mock/albums.json new file mode 100644 index 0000000..c5e1ee6 --- /dev/null +++ b/src/mock/albums.json @@ -0,0 +1,45 @@ +[ + { + "id": "album-1", + "title": "In Rainbows", + "artist": "Radiohead", + "releaseYear": 2007, + "genre": "Rock", + "coverUrl": "link", + "audioUrl": "link", + "isFavorite": false, + "tracks": [ + { "title": "15 Step", "duration": "3:57" }, + { "title": "Bodysnatcher", "duration": "4:01" }, + { "title": "Nude", "duration": "4:15" } + ] + }, + { + "id": "album-2", + "title": "Number Ones", + "artist": "Michael Jackson", + "releaseYear": 2002, + "genre": "Pop", + "coverUrl": "link", + "audioUrl": "link", + "isFavorite": false, + "tracks": [ + { "title": "Billie Jean", "duration": "4:53" }, + { "title": "Beat It", "duration": "4:19" } + ] + }, + { + "id": "album-3", + "title": "9 To 5 And Odd Jobs", + "artist": "Dolly Parton", + "releaseYear": 1980, + "genre": "Country", + "coverUrl": "link", + "audioUrl": "link", + "isFavorite": false, + "tracks": [ + { "title": "9 to 5", "duration": "2:46" }, + { "title": "Hush-A-Bye Hard Times", "duration": "3:50" } + ] + } +] \ No newline at end of file diff --git a/src/types/albums.ts b/src/types/albums.ts new file mode 100644 index 0000000..81c49ce --- /dev/null +++ b/src/types/albums.ts @@ -0,0 +1,18 @@ +// src/types/album.ts + +export interface Track { + title: string; + duration: string; +} + +export interface Album { + id: string; + title: string; + artist: string; + releaseYear: number; + genre: string; + coverUrl: string; + audioUrl: string; + isFavorite: boolean; + tracks: Track[]; +} \ No newline at end of file