-
- {panelToggleControls}
-
- ) : null
- }
- surfaces={renderedRightPanelSurfaces}
- environmentId={activeThreadRef.environmentId}
- activeSurfaceId={renderedRightPanelSurface?.id ?? null}
- pendingSurfaceIds={pendingFileSurfaceIds}
- previewSessions={activePreviewState.sessions}
- desktopByTabId={activePreviewState.desktopByTabId}
- previewRuntimeTabId={resolvePreviewRuntimeTabId}
- terminalLabelsById={activeTerminalLabelsById}
- onActivate={activateRightPanelSurfaceStable}
- onCloseSurface={closeRightPanelSurfaceStable}
- onRenameDevice={(surfaceId, title) => {
- if (activeThreadRef)
- useRightPanelStore.getState().renameDevice(activeThreadRef, surfaceId, title);
- }}
- onCloseOtherSurfaces={closeOtherRightPanelSurfacesStable}
- onCloseSurfacesToRight={closeRightPanelSurfacesToRightStable}
- onCloseAllSurfaces={closeAllRightPanelSurfacesStable}
- onMoveSurface={moveRightPanelSurfaceStable}
- onCopyFilePath={copyRightPanelFilePathStable}
- onAddBrowser={() => createBrowserSurface()}
- onAddBrowserInProfile={createBrowserSurfaceStable}
- onAddTerminal={addTerminalSurfaceStable}
- onAddDiff={addDiffSurfaceStable}
- onAddFiles={addFilesSurfaceStable}
- onAddPullRequest={addPullRequestSurfaceStable}
- onAddPullRequests={addPullRequestsSurfaceStable}
- onAddDevice={addDeviceSurfaceStable}
- onAddSideChat={sideChatsOffered ? openSideChatStable : undefined}
- browserAvailable={canOperatePreview && browserAvailable}
- terminalAvailable={activeProject !== null && canOperateTerminal}
- diffAvailable={isServerThread && isGitRepo}
- filesAvailable={activeProject !== null}
- pullRequestAvailable={pullRequestSurfaceAvailable}
- pullRequestsAvailable={pullRequestsSurfaceAvailable}
- deviceAvailable={activeThreadRef !== null}
- sideChatAvailable={sideChat.available}
- sideChatDisabledReason={sideChatDisabledReason}
+
- {rightPanelContent}
-
+
+
+ {panelToggleControls}
+
+ ) : null
+ }
+ surfaces={renderedRightPanelSurfaces}
+ environmentId={activeThreadRef.environmentId}
+ activeSurfaceId={renderedRightPanelSurface?.id ?? null}
+ pendingSurfaceIds={pendingFileSurfaceIds}
+ previewSessions={activePreviewState.sessions}
+ desktopByTabId={activePreviewState.desktopByTabId}
+ previewRuntimeTabId={resolvePreviewRuntimeTabId}
+ terminalLabelsById={activeTerminalLabelsById}
+ onActivate={activateRightPanelSurfaceStable}
+ onCloseSurface={closeRightPanelSurfaceStable}
+ onRenameDevice={(surfaceId, title) => {
+ if (activeThreadRef)
+ useRightPanelStore.getState().renameDevice(activeThreadRef, surfaceId, title);
+ }}
+ onCloseOtherSurfaces={closeOtherRightPanelSurfacesStable}
+ onCloseSurfacesToRight={closeRightPanelSurfacesToRightStable}
+ onCloseAllSurfaces={closeAllRightPanelSurfacesStable}
+ onMoveSurface={moveRightPanelSurfaceStable}
+ onCopyFilePath={copyRightPanelFilePathStable}
+ onAddBrowser={() => createBrowserSurface()}
+ onAddBrowserInProfile={createBrowserSurfaceStable}
+ onAddTerminal={addTerminalSurfaceStable}
+ onAddDiff={addDiffSurfaceStable}
+ onAddFiles={addFilesSurfaceStable}
+ onAddPullRequest={addPullRequestSurfaceStable}
+ onAddPullRequests={addPullRequestsSurfaceStable}
+ onAddDevice={addDeviceSurfaceStable}
+ onAddSideChat={sideChatsOffered ? openSideChatStable : undefined}
+ browserAvailable={canOperatePreview && browserAvailable}
+ terminalAvailable={activeProject !== null && canOperateTerminal}
+ diffAvailable={isServerThread && isGitRepo}
+ filesAvailable={activeProject !== null}
+ pullRequestAvailable={pullRequestSurfaceAvailable}
+ pullRequestsAvailable={pullRequestsSurfaceAvailable}
+ deviceAvailable={activeThreadRef !== null}
+ sideChatAvailable={sideChat.available}
+ sideChatDisabledReason={sideChatDisabledReason}
+ >
+ {rightPanelContent}
+
+
) : null}