{#snippet repliesSnippet()}
{#if replies.length > 0} {#each replies as reply} 1 ? reply.edits.at(-1) : undefined} id={reply.id} author={reply.author} caption="replied" reactions={reply.reactions} timestamp={reply.edits[0].timestamp} body={reply.edits.slice(-1)[0].body} editComment={editComment && canEditComment(reply.author.did) && partial(editComment, reply.id)} reactOnComment={reactOnComment && partial(reactOnComment, reply.id)} /> {/each} {/if} {#if createReply && showReplyForm}
(showReplyForm = false)} submit={async ({ comment, embeds }) => { try { submitInProgress = true; await createReply(comment, Array.from(embeds.values()), root.id); } finally { showReplyForm = false; submitInProgress = false; } }} />
{/if}
{/snippet}
1 ? root.edits.at(-1) : undefined} author={root.author} reactions={root.reactions} timestamp={root.edits.slice(-1)[0].timestamp} body={root.edits.slice(-1)[0].body} editComment={editComment && canEditComment(root.author.did) && partial(editComment, root.id)} reactOnComment={reactOnComment && partial(reactOnComment, root.id)}> {#snippet actions()} {#if createReply} {/if} {/snippet}
{#if replies.length > 0 || (createReply && showReplyForm)} {#if inline}
{@render repliesSnippet()}
{:else} {@render repliesSnippet()} {/if} {/if}