Comments {#if !loading && totalCommentCount > 0} ({totalCommentCount}) {/if}

{#if loading}

Loading comments...

{:else if comments.length === 0 && kind1Replies.length === 0 && yakBacks.length === 0}

No replies yet. Be the first to reply!

{:else}
{#each getThreadItems() as item (item.event.id)} {@const parent = getParentEvent(item.event)} {#if item.type === 'comment'} {:else if item.type === 'reply'}
{:else if item.type === 'yak'}
{/if} {/each}
{/if} {#if !hideCommentForm} {#if replyingTo}
(replyingTo = null)} />
{:else}
{/if} {/if}