@code {
    [Parameter, Required] public FeLibrary CurrentLibrary { get; set; }
}

<ul class="nav justify-content-start align-items-center">
    <li class="nav-item mb-1">
        <span>
            Play all track (@(CurrentLibrary?.Discs.Sum(p => p.TrackSets.First().Tracks.Length).ToString() ?? "..."))
        </span>
    </li>

    @foreach (var cat in (CurrentLibrary?.Catalogs).KeepNoEmpty())
    {
        <li class="nav-item mb-1 mx-2">
            <a class="btn btn-link p-2 py-1" href="@cat?.PlaylistPath" target="@FnzConst.PlayPageTarget" onclick="return fnz.blockDownloadAndOpenHtmlPage(this)">
                <small class="font-monospace">@cat?.TotalDuration.SecondToDur() @cat?.TotalBytes.BytesToFileSize()</small>
                @cat?.Name
            </a>
        </li>
    }
</ul>