{#if editComment && mode !== "read"}
{
mode = "submit";
try {
await editComment(comment, Array.from(embeds.values()));
} finally {
mode = "read";
}
}}
close={async () => {
body = body;
await tick();
mode = "read";
}} />
{:else}
{
await editComment(
content,
Array.from(embeds?.values() ?? []),
);
}
: undefined} />
{/if}