{#if !hideHeader}
Files
{/if}
{#if showRoot}
onSelectPath?.('/')} class="w-full flex items-center gap-1 px-2 py-1 text-xs hover:bg-surface-hover transition-colors rounded text-left {selectedPath === '/' ? 'bg-surface-accent-selected' : ''}" >
/
{/if} {#each fileTree as node (node.path)}
(pathToEdit = path)} onCancelEdit={() => { pathToEdit = undefined pendingNewFilePath = undefined }} /> {/each} {#if extraNodes} {#each extraNodes as node (node.path)}
{/each} {/if}