{song.title}
-{song.artist}
-{song.album}
+Artist: {song.artist}
+Album: {song.album}
{isLoading ? 'Laster…' : error || data?.error ? 'Fant ingen sangtekst for denne sangen' : data?.lyrics}
diff --git a/src/components/SongList.tsx b/src/components/SongList.tsx index fbfb0b3..8c7d071 100644 --- a/src/components/SongList.tsx +++ b/src/components/SongList.tsx @@ -3,9 +3,10 @@ import type { Song } from '../data/songs' type SongListProps = { songs: Song[] onSelectSong: (song: Song) => void + currentSong: Song } -export function SongList({songs, onSelectSong}: SongListProps) { +export function SongList({songs, onSelectSong, currentSong}: SongListProps) { return (