{#if preview}
{#if body.trim().length === 0}
Nothing to preview.
{:else}
{/if}
{:else}
submit({ comment: body, embeds })} bind:value={body} {placeholder} /> {/if}
{ preview = false; close(); }}>
Discard
{#if !preview}
{#if allowAttachments}Drag and drop files to add them.{/if}
Markdown is supported. Press {utils.modifierKey()}↵ to submit.
{/if}
{#if allowAttachments}
Attach
{/if}
(preview = !preview)}>
{preview ? "Edit" : "Preview"}
{#if submitInProgress} Saving… {:else} {submitCaption} {/if}