{/* Left side: Switcher dropdown or rename input */}
{isRenamingWorkspace ? (
{workspaceNameError && (
{workspaceNameError}
)}
) : (
document.body}
icon={(
)}
>
{/* Workspace section */}
{currentWorkspace && (
<>
Workspace
handleSwitchToWorkspace(currentWorkspace.uid)}
>
{currentWorkspace.name || 'Untitled Workspace'}
{workspaceTabCount > 0 && (
{workspaceTabCount}
)}
>
)}
{/* Collections section */}
{mountedCollections.length > 0 && (
<>
Collections
{mountedCollections.map((col) => {
const colTabCount = getTabCount(col.uid);
return (
handleSwitchToCollection(col)}
>
{col.name || 'Untitled Collection'}
{colTabCount > 0 && (
{colTabCount}
)}
);
})}
>
)}
)}
{/* Workspace actions dropdown */}
{showWorkspaceActions && (
document.body}
icon={}
>
{getRevealInFolderLabel()}
)}
{/* Right side: Actions (only for regular collections) */}
{!isScratchCollection && (
{/* OpenAPI Sync - standalone only when configured */}
{hasOpenApiSyncConfigured && (
{(hasOpenApiUpdates || hasOpenApiError) && (
)}
)}
{/* Runner - always visible */}
{/* JS Sandbox Mode - always visible */}
{/* Overflow menu */}
{/* Environment Selector - always visible */}
)}