{#if groups.length === 0} {#if loading}
{:else}
{/if} {:else} {#each groups as group (group.peerId)} {@const fresh = started.current === group.peerId} {@const backfillLabel = fresh ? t("stories.backfillStarted") : t("stories.loadOlderStories")}
toggle(group.peerId)} type="button" >
{group.name}
{group.stories.length}
backfill(group.peerId)} round smaller title={backfillLabel} variant="translucent" >
{#if expanded[group.peerId]}
{#each group.stories as item, index (item.story_id)}
openViewer(group, index)} preview={previews[previewKey(item)]} story={item} /> {/each}
{/if}
{/each}
{/if}