{ if (!state) { tab = ''; folderSearch = ''; channelSearch = ''; } }} >
{#if tab === ''}
{:else if tab === 'folders'}
{#each filteredFolderOptions as folder (folder.id)} {@const path = folderPath(folder)} {:else}
{folderOptions.length > 0 ? $i18n.t('No results found') : $i18n.t('No folders')}
{/each}
{:else if tab === 'channels'}
{#each filteredChannelOptions as channel (channel.id)} {:else}
{channelOptions.length > 0 ? $i18n.t('No results found') : $i18n.t('No channels')}
{/each}
{/if}