{backLabel}
{title}
{#if query && !query.isPending && !failed}
{plural(total, 'album', 'albums')}
{/if}
{#if failed}
{failText}
query?.refetch()} >Try again
{:else if !query || query.isPending}
Loading…
{:else if albums.length === 0}
{:else}
{#each albums as album (album.id)}
{/each}
query?.fetchNextPage()} {endLabel} /> {/if}