{#if preview}
{:else}
{#if value} {#await getBlobRef(value.file, value.name, sizeToWidth('large')) then valueRef}
{#if showPreview && isImage(value.type)}
{:else}
{iconLabel(value.name)}
{/if}
{trimFilename(value.name)}
{filesize(value.size, { spacer: '' })}
•
{#if canRemove}
•
{ ev.stopPropagation() ev.preventDefault() dispatch('remove', value) }} >
{/if}
{/await} {/if}
{/if}