{#if item} {/if} { if (item?.file?.data?.content) { showModal = !showModal; } else { if (url) { if (type === 'file') { window.open(`${url}/content`, '_blank').focus(); } else { window.open(`${url}`, '_blank').focus(); } } } dispatch('click'); }} > {#if !loading} {:else} {/if} {name} {#if type === 'file'} {$i18n.t('File')} {:else if type === 'doc'} {$i18n.t('Document')} {:else if type === 'collection'} {$i18n.t('Collection')} {:else} {type} {/if} {#if size} {formatFileSize(size)} {/if} {#if dismissible} { dispatch('dismiss'); }} > {/if}