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