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