{comment.authorName} ·
{timeAgo(comment.createdAt)}
{#if edited} · Edited {/if}
{#if editing}
{editLoading ? "Saving..." : "Save"}
Cancel
{editError}
{:else}
{comment.content}
{/if}
{#if get(isAuthenticated)}
{ replying = !replying; replyError = ""; }} class="text-secondary hover:text-secondary-dark text-xs" > Reply
{/if} {#if isMine} {#if !editing}
Edit
{/if}
{deleteLoading ? "Deleting..." : "Delete"}
{/if}
{#if replying}
{replyLoading ? "Posting..." : "Post reply"}
(replying = false)} class="kicker hover:text-ink" > Cancel
{replyError}
{/if}
{#if children.length > 0}
(collapsed = !collapsed)} title={collapsed ? "Show replies" : "Hide replies"} aria-label={collapsed ? "Show replies" : "Hide replies"} >
{#if collapsed}
(collapsed = false)} class="text-muted hover:text-ink py-1 text-xs" > Show {children.length} repl{children.length === 1 ? "y" : "ies"}
{:else} {#each children as child}
{/each} {/if}
{/if}