@using SpotifyAPI.Web; @if (Track is not null) {
} else if (Episode is not null) { } else { } @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; }