@using SpotifyAPI.Web; @if (Track is not null) {

@Track.Name

@Track.Album.Name
@foreach(var artist in Track.Artists) { @artist.Name }
} else if (Episode is not null) {

@Episode.Name

@Episode.Show.Name
@Episode.Show.Publisher
} else {

No Playback

} @code { [Parameter] public FullTrack Track { get; set; } [Parameter] public FullEpisode Episode { get; set; } private string imageUrl => Track?.Album?.Images?.FirstOrDefault()?.Url ?? Episode?.Show?.Images?.FirstOrDefault()?.Url ?? string.Empty; }