{c.author || author}
{when(c.date)}
(menu = !menu)} >⋯
{#if menu}
{t().comments.edit}
{ menu = false; editor?.chain().focus().updateComment(c.id, { resolved: !c.resolved }).run(); }}> {c.resolved ? t().comments.reopen : t().comments.resolve}
{ menu = false; editor?.chain().focus().removeComment(c.id).run(); }}>{t().common.remove}
{/if}
{c.quote}
{#if editing}
{ if (e.key === 'Escape') editing = false; }} >
(editing = false)}>{t().common.cancel}
{t().common.ok}
{:else}
{c.text}
{/if} {#each c.replies as r, i (i)}
{r.author || author}
{when(r.date)}
{r.text}
{/each} {#if replying}
{ if (e.key === 'Escape') replying = false; }} >
{ replying = false; reply = ''; }}>{t().common.cancel}
{t().comments.reply}
{:else if !editing}
(replying = true)}>{t().comments.reply}
{/if}