{#if currentlyPlaying}
{#if !expanded}
{#key currentlyPlaying}
{/key}
{currentlyPlaying.name}
{currentlyPlaying.artists?.map((artist) => artist.name).join(', ') || currentlyPlaying.uploader?.name}
{ currentTimeTimestamp.innerText = formatTime(event.detail.value) seeking = true }} on:seeked={(event) => { currentTime = event.detail.value seeking = false }} />
{:else}
{#key currentlyPlaying} {/key}
Up next
{#each $queue.list as item, index} {@const isCurrent = item === currentlyPlaying} {/each}
{ expandedCurrentTimeTimestamp.innerText = formatTime(event.detail.value) seeking = true }} on:seeked={(event) => { currentTime = event.detail.value seeking = false }} />
{currentlyPlaying.name}
{currentlyPlaying.artists?.map((artist) => artist.name).join(', ') || currentlyPlaying.uploader?.name}{currentlyPlaying.album ? ` - ${currentlyPlaying.album.name}` : ''}
{/if}
{/if}