{#if loaded} { deleteHandler(selectedItem); }} /> {$i18n.t('Knowledge')} {filteredItems.length} { goto('/workspace/knowledge/create'); }} > {#each filteredItems as item} { if (item?.meta?.document) { toast.error( $i18n.t( 'Only collections can be edited, create a new knowledge base to edit/add documents.' ) ); } else { goto(`/workspace/knowledge/${item.id}`); } }} > {#if item?.meta?.document} {:else} {/if} { selectedItem = item; showDeleteConfirm = true; }} /> {item.name} {item.description} {$i18n.t('By {{name}}', { name: capitalizeFirstLetter( item?.user?.name ?? item?.user?.email ?? $i18n.t('Deleted User') ) })} {$i18n.t('Updated')} {dayjs(item.updated_at * 1000).fromNow()} {/each} ⓘ {$i18n.t("Use '#' in the prompt input to load and include your knowledge.")} {:else} {/if}