{$i18n.t('Controls')}
{#if files.length > 0}
{$i18n.t('Files')}
{#each files.filter((file) => file.type !== 'image') as file, fileIdx} { // Remove the file from the files array files = files.filter((item) => item.id !== file.id); files = files; onUpdate(files); }} on:click={() => { console.log(file); }} /> {/each}
{#each files.filter((file) => file.type === 'image') as file, fileIdx} { files = files.filter((item) => item.id !== file.id); files = files; onUpdate(files); }} /> {/each}

{/if}
{$i18n.t('Model')}