{#await load_defer} {:then}

Sidebar

{#each streams as stream}

{ stream.title }

{#if stream.state === "pending"} { formatDistanceToNow(parseISO(stream.starts_on), {addSuffix: true}) } {:else if stream.state === "live"} Live Now! {:else} { formatDistanceToNow(parseISO(stream.updated_at), {addSuffix: true}) } {/if}
{#if stream.poster }
{:else} {/if}
{/each}
{/await}