{#if preview}
{#if body.trim().length === 0}
Nothing to preview.
{:else}
{/if}
{:else}
submit({ comment: body, embeds })} bind:value={body} {placeholder} /> {/if} {@render belowTextarea?.()} {#if !hideDiscard || body.trim() !== ""}
{#if !hideDiscard}
{ preview = false; close(); }}>
Discard
{/if} {#if !preview}
{#if embedUploadError}
{embedUploadError}
{/if}
Markdown is supported.
{/if}
{#if attachEnabled || attachDisabledReason}
Attach
{/if}
(preview = !preview)}>
{preview ? "Edit" : "Preview"}
{#if submitInProgress} Saving… {:else} {submitCaption}
{utils.modifierKey()}↵
{/if}
{/if}