{#each ctx.streams as stream}
{@const favorited = favoritedStreams.has(stream.id)}
{@const isCached = streamCache.cached.has(stream.id)}
{@const current = ctx.current?.id === stream.id}
-
{#if streamCache.downloading.has(stream.id)}
{streamCache.downloading.get(stream.id)}%
{:else if isCached}
{:else}
{@const partial = streamCache.partials.get(stream.id)}
{/if}
{/each}