{#if active}
{ preview = false; }}>
Edit
{ preview = true; }}>
Preview
{#if preview}
{:else}
{/if}
{#if !preview}
Markdown supported. {#if enableAttachments}Drop attachments into the text area.{/if} Press {utils.isMac() ? "⌘" : "ctrl"}↵ to submit.
{/if}
{ preview = false; active = false; }}> Cancel
Comment
{:else}
{ commentBody = ""; active = true; dispatch("click"); }}> {placeholder}
{/if}