{#if editComment && state !== "read"}
{@const editComment_ = editComment}
{
state = "submit";
try {
await editComment_(comment, Array.from(embeds.values()));
} finally {
state = "read";
}
}}
on:close={async () => {
body = body;
await tick();
state = "read";
}} />
{:else}
{/if}
{/if}
{#if (id && reactOnComment) || (id && reactions && reactions.length > 0)}
{#if id && reactOnComment}
{@const reactOnComment_ = reactOnComment}
{
try {
await reactOnComment_(authors, emoji);
} finally {
closeFocused();
}
}} />
{/if}
{#if id && reactions && reactions.length > 0}
{/if}