{#if tab === ''}
{#if tools} {#if Object.keys(tools).length > 0} {/if} {#if skills && Object.keys(skills).length > 0} {/if} {:else}
{/if} {#if toggleFilters && toggleFilters.length > 0} {#each toggleFilters.sort( (a, b) => a.name.localeCompare( b.name, undefined, { sensitivity: 'base' } ) ) as filter, filterIdx (filter.id)} {/each} {/if} {#if showWebSearchButton} {/if} {#if showImageGenerationButton} {/if} {#if showCodeInterpreterButton} {/if}
{:else if tab === 'tools' && tools}
{#if toolIds.length === 0}
{$i18n.t('No tools found')}
{:else}
{#each toolGroups as [label, ids]} {#if toolGroups.length > 1}
{label}
{/if} {#each ids as toolId} {/each} {/each}
{/if}
{:else if tab === 'skills' && skills}
{#if skillIds.length === 0}
{$i18n.t('No skills found')}
{:else}
{#each skillGroups as [label, ids]} {#if skillGroups.length > 1 || skills?.[ids[0]]?.source === 'terminal'}
{label}
{/if} {#each ids as skillId} {/each} {/each}
{/if}
{/if}