MCPcopy Index your code
hub / github.com/continuedev/continue / ScreenContent

Function ScreenContent

extensions/cli/src/ui/components/ScreenContent.tsx:65–201  ·  view source on GitHub ↗
({
  isScreenActive,
  services,
  handleConfigSelect,
  handleModelSelect,
  handleSessionSelect,
  handleExportSession,
  handleReload: _handleReload,
  closeCurrentScreen,
  activePermissionRequest,
  activeQuizQuestion,
  handleToolPermissionResponse,
  handleQuizAnswer,
  handleUserMessage,
  isWaitingForResponse,
  isCompacting,
  inputMode,
  handleInterrupt,
  handleFileAttached,
  isInputDisabled,
  wasInterrupted = false,
  isRemoteMode,
  onImageInClipboardChange,
  diffContent,
  chatHistory = [],
  handleEditMessage,
  onShowEditSelector,
})

Source from the content-addressed store, hash-verified

63}
64
65export const ScreenContent: React.FC<ScreenContentProps> = ({
66 isScreenActive,
67 services,
68 handleConfigSelect,
69 handleModelSelect,
70 handleSessionSelect,
71 handleExportSession,
72 handleReload: _handleReload,
73 closeCurrentScreen,
74 activePermissionRequest,
75 activeQuizQuestion,
76 handleToolPermissionResponse,
77 handleQuizAnswer,
78 handleUserMessage,
79 isWaitingForResponse,
80 isCompacting,
81 inputMode,
82 handleInterrupt,
83 handleFileAttached,
84 isInputDisabled,
85 wasInterrupted = false,
86 isRemoteMode,
87 onImageInClipboardChange,
88 diffContent,
89 chatHistory = [],
90 handleEditMessage,
91 onShowEditSelector,
92}) => {
93 if (hideScreenContent(services.update)) {
94 return null;
95 }
96
97 // Config selector
98 if (isScreenActive("config")) {
99 return (
100 <ConfigSelector
101 onSelect={handleConfigSelect}
102 onCancel={closeCurrentScreen}
103 />
104 );
105 }
106
107 if (isScreenActive("mcp")) {
108 return <MCPSelector onCancel={closeCurrentScreen} />;
109 }
110
111 if (isScreenActive("update")) {
112 return <UpdateSelector onCancel={closeCurrentScreen} />;
113 }
114
115 // Model selector
116 if (isScreenActive("model")) {
117 return (
118 <ModelSelector
119 onSelect={handleModelSelect}
120 onCancel={closeCurrentScreen}
121 />
122 );

Callers

nothing calls this directly

Calls 2

hideScreenContentFunction · 0.85
handleEditMessageFunction · 0.85

Tested by

no test coverage detected