{formatBytes($downloadedDeviceTotal)} on device · {$downloadedItemCount} {$downloadedItemCount === 1 ? "item" : "items"}

{#if currentLibrary}
/ {currentLibrary.name}
{#if loadError}

{loadError}

{/if} i)} loading={loadingItems} showViewToggle={true} musicContent={currentLibrary.collectionType === "music"} {sizeLabelFor} {downloadedBadgeFor} onItemRemove={removeItem} {onItemClick} /> {#if !loadingItems && items.length === 0 && !loadError}

Nothing downloaded in this library.

{/if} {:else if loading}

Loading your downloads…

{:else if $downloadedLibraries.length === 0}

Nothing downloaded yet

Browse your library and tap download to save media for offline.

{:else}
{#each $downloadedLibraries as lib (lib.id)} {/each}
{/if}