!isOpen && handleClose()}>
Terminal - {containerName} {#if connected} Connected {/if}
{#if showConfig}
{#if detectingShells}

Detecting available shells...

{:else if !anyShellAvailable}

No shell available

This container does not have any shell installed.

Containers built from scratch or distroless images often don't include shells.

{:else}

Open terminal session

Configure the shell and user for this session

{shellDetection?.allShells.find(o => o.path === selectedShell)?.label || 'Select shell'} {#if shellDetection} {#each shellDetection.allShells as option} {option.label} {#if !option.available} (unavailable) {/if} {/each} {/if}
{USER_OPTIONS.find(o => o.value === selectedUser)?.label || 'Select user'} {#each USER_OPTIONS as option} {option.label} {/each}
{/if}
{:else}
{/if}