{#if current}
{current.title}
{current.artist_name}
{#if player.state === 'error'}
{player.error ?? 'Playback failed.'}
playQueue(player.queue, player.index)} > Try again
{:else}
{formatDuration(player.position)}
{formatDuration(player.duration)}
⏮
{#if player.state === 'loading' || player.state === 'idle'}
◌
{:else if player.isPlaying} ⏸ {:else} ▶ {/if}
⏭
{/if}
🔀
🔁{player.repeat === 'one' ? '¹' : ''}
Volume
{/if}