import { jsx as _jsx } from "react/jsx-runtime";
import { AgentTerminalFullLayout, } from "./AgentTerminalFullLayout";
import { AgentTerminalFullPromptControls, } from "./AgentTerminalFullPromptControls";
import { AgentTerminalFullUpperContent, } from "./AgentTerminalFullUpperContent";
import { AgentTerminalSummaryLayout, } from "./AgentTerminalSummaryLayout";
import { AgentPromptTrayPopovers } from "./AgentPromptTrayPopovers";
export function AgentTerminalView({ loadingContent, displayMode, summaryLayoutProps, fullLayoutProps, fullUpperContentProps, fullPromptControlsProps, inlineDialogContent, isLiveEditorContextMode, }) {
    if (loadingContent) {
        return loadingContent;
    }
    if (displayMode === "summary") {
        return _jsx(AgentTerminalSummaryLayout, { ...summaryLayoutProps });
    }
    const showTrayPopovers = !fullUpperContentProps.simpleMode &&
        !fullUpperContentProps.hideContext &&
        !fullUpperContentProps.isMobile;
    const trayOverlay = showTrayPopovers ? (_jsx(AgentPromptTrayPopovers, { contextChrome: fullUpperContentProps.contextChrome, agent: fullUpperContentProps.agent, activeProfile: fullUpperContentProps.activeProfile, documentListRef: fullUpperContentProps.documentListRef, hasTodoContent: fullUpperContentProps.hasTodoContent, hasSpawnedAgents: fullUpperContentProps.hasSpawnedAgents, hasHistoryContent: fullUpperContentProps.hasHistoryContent, messages: fullUpperContentProps.messages, agentMetadata: fullUpperContentProps.agentMetadata, operations: fullUpperContentProps.operations, isLiveEditorContextMode: isLiveEditorContextMode })) : null;
    return (_jsx(AgentTerminalFullLayout, { ...fullLayoutProps, upperContent: _jsx(AgentTerminalFullUpperContent, { ...fullUpperContentProps }), inlineDialog: inlineDialogContent, promptControls: _jsx(AgentTerminalFullPromptControls, { ...fullPromptControlsProps }), trayOverlay: trayOverlay }));
}
//# sourceMappingURL=AgentTerminalView.js.map