(fakeAttach === 'normal' ? pasteAction(ev) : undefined)} on:dragover|preventDefault={() => {}} on:dragleave={() => {}} on:drop|preventDefault|stopPropagation={(ev) => { if (fakeAttach === 'fake') dispatch('attach', { action: 'drop', event: ev }) else if (fakeAttach === 'normal') fileDrop(ev) }} >
{ if (fakeAttach === 'fake') dispatch('attach', { action: 'add' }) else if (fakeAttach === 'normal') attach() }} />
{#if attachments.size && fakeAttach === 'normal'}
{#each Array.from(attachments.values()) as attachment}
{#if useAttachmentPreview} {:else} { if (result !== undefined) removeAttachment(attachment) }} /> {/if}
{/each}
{/if}