{#snippet top(expand: boolean)}
{#if expand} {/if}
{comment.post.author.displayName || comment.post.author.handle}
{/snippet}
{#if expanded} {@render top(false)}
{@html renderPostAsHtml(comment.post)}
{#if comment.replies?.length > 0 && depth > 4} View more replies on bluesky {/if} {:else} {/if}
{#if comment.replies?.length > 0 && depth <= 4 && expanded} {#each comment.replies.toSorted((a: any, b: any) => new Date(a.post.record.createdAt).getTime() - new Date(b.post.record.createdAt).getTime()) as reply} {/each} {/if}