Storage

{#if stats && stats.total_items > 0} {/if}
{#if loading}
{:else if stats}

{formatBytes(stats.total_bytes)}

{stats.total_items} {stats.total_items === 1 ? "item" : "items"} downloaded

{#if stats.albums.length > 0} {#if showBreakdown}
{#each stats.albums as album (album.album_id)}
{formatBytes(album.bytes_used)}
{/each}
{/if} {/if} {#if stats.total_items === 0}

No downloads yet

Downloaded media will appear here

{/if} {/if}
{#if showDeleteAllConfirm}

Delete All Downloads?

This will remove {stats?.total_items || 0} downloaded items and free up {formatBytes(stats?.total_bytes || 0)} of storage. This action cannot be undone.

{/if}