{#if playlist.primaryImageTag} {:else}
{/if}
{#if editingName} {:else} {/if}

{entries.length} track{entries.length !== 1 ? "s" : ""} {#if totalDuration > 0} · {formatDuration(totalDuration)} {/if}

{#if playlist.overview}

{playlist.overview}

{/if}

Tracks

{#if !loading && entries.length > 0}
{#each entries as entry, i (entry.playlistItemId)}
{/each}
{/if}
{#if showDeleteConfirm}
showDeleteConfirm = false} onkeydown={(e) => { if (e.key === "Escape") showDeleteConfirm = false; }} role="dialog" aria-modal="true" tabindex="-1" >
e.stopPropagation()} onkeydown={(e) => e.stopPropagation()} role="presentation" >

Delete Playlist?

Are you sure you want to delete "{playlist.name}"? This action cannot be undone.

{/if}