{#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}