{#if $event} {#if !showReply}
Leave comment
{/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 comments...
{:then}
Failed to load comments.
{/await} {/if}
{#snippet icon()}
Go back
{/snippet} {#snippet title()}
{getTagValue("title", $event?.tags || []) || ""}
{/snippet} {#snippet action()}
{/snippet}
{#if showReply}
{/if}