Sidebar

{#each streams as stream}

{#if stream.state === "live"} { stream.title } {:else} { stream.title } {/if}

{#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}