{$i18n.t('Chat Controls')}
{#if $user.role === 'admin' || $user?.permissions.chat?.controls}
{#if chatFiles.length > 0}
{#each chatFiles as file, fileIdx} { // Remove the file from the chatFiles array chatFiles.splice(fileIdx, 1); chatFiles = chatFiles; }} on:click={() => { console.log(file); }} /> {/each}

{/if}