{#if $event} {#if !showReply}
Reply to thread
{/if} {#each sortBy(e => -e.created_at, $replies).slice(0, showAll ? undefined : 4) as reply (reply.id)}
{/each} {#if !showAll && $replies.length > 4}
Show all {$replies.length} replies
{/if}
{:else} {#await sleep(5000)}
Loading thread...
{:then}
Failed to load thread.
{/await} {/if}
{#snippet icon()}
Go back
{/snippet} {#snippet title()}
{title}
{/snippet} {#snippet action()}
{/snippet}
{#if showReply}
{/if}