← Library
{#if notFound}
{:else if query.isError}
{:else if showSkeleton.value && !query.data}
{:else if query.data}
{@const detail = query.data}
{#if detail.albums.length === 0}
This artist has no albums in the library.
{:else}
{#each detail.albums as album (album.id)}
{/each}
{/if}
{#if (topTracksQuery.data?.length ?? 0) > 0}
{@const top = topTracksQuery.data ?? []}
{#snippet item(track: TrackRef, globalIdx: number)}
{/snippet}
{/if}
{#if (similarQuery.data?.length ?? 0) > 0}
{#snippet item(artist: ArtistRef)}
{/snippet}
{/if}
{/if}