@namespace DeepDrftPublic.Client.Controls.AudioPlayerBar @if (Track is not null) {
@* Title links to the release's dedicated detail page via the shared resolver (ยง2): the TrackDto already carries Release { Id, Medium }, so no round-trip is needed. When no release is attached there is no medium to resolve, so the title renders unlinked. *@ @if (Track.Release is not null) { @Track.TrackName } else { @Track.TrackName } - @Track.Release?.Artist
@if (!string.IsNullOrEmpty(Track.Release?.Genre)) { @Track.Release.Genre } @if (Track.Release?.ReleaseDate.HasValue == true) { @Track.Release.ReleaseDate.Value.Year }
}