e.stopPropagation()} > {#each ownPlaylists as p (p.id)}
add(p.id)} /> {/each} {#if ownPlaylists.length > 0}
{/if} {#if !creating}
{ creating = true; }} /> {:else}
{ if (e.key === 'Enter') createAndAdd(); }} />
{ creating = false; newName = ''; }} class="rounded px-2 py-1 text-xs text-text-muted hover:bg-surface-hover" > Cancel
Create & add
{/if} {#if error}
{error}
{/if}