{$t.settings?.title || 'Settings'}

{#if error}
{error}
{/if} {#if isLoading}
{:else if settings}
{#if activeTab === 'environments'}

{$t.settings?.environments || 'Superset Environments'}

{$t.settings?.env_description || 'Configure Superset environments for dashboards and datasets.'}

{#if settings.environments && settings.environments.length > 0}
{#each settings.environments as env} {/each}
{$t.connections?.name || "Name"} URL {$t.connections?.user || "Username"} Default {$t.settings?.env_actions || "Actions"}
{env.name} {env.url} {env.username} {env.is_default ? 'Yes' : 'No'}
{/if}
{:else if activeTab === 'connections'}

{$t.settings?.connections || 'Database Connections'}

{$t.settings?.connections_description || 'Configure database connections for data mapping.'}

{:else if activeTab === 'llm'}

{$t.settings?.llm || 'LLM Providers'}

{$t.settings?.llm_description || 'Configure LLM providers for dataset documentation.'}

{:else if activeTab === 'logging'}

{$t.settings?.logging || 'Logging Configuration'}

{$t.settings?.logging_description || 'Configure logging and task log levels.'}

{:else if activeTab === 'storage'}

{$t.settings?.storage || 'File Storage Configuration'}

{$t.settings?.storage_description || 'Configure file storage paths and patterns.'}

{/if}