{ if (e.detail === false) { onClose(); query = ''; } }} >
{#if items.length === 0}
{$i18n.t('No knowledge found')}
{:else} {#each items as item, i} {#if i === 0 || item?.type !== items[i - 1]?.type}
{#if item?.type === 'note'} {$i18n.t('Notes')} {:else if item?.type === 'collection'} {$i18n.t('Collections')} {:else if item?.type === 'file'} {$i18n.t('Files')} {/if}
{/if}
{/each} {/if}