MCPcopy Index your code
hub / github.com/codeaashu/claude-code / renderContent

Function renderContent

src/utils/swarm/It2SetupPrompt.tsx:134–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 let t9;
133 if ($[13] !== error || $[14] !== handleInstall || $[15] !== handleUseTmux || $[16] !== onDone || $[17] !== packageManager || $[18] !== step || $[19] !== tmuxAvailable) {
134 const renderContent = () => {
135 switch (step) {
136 case "initial":
137 {
138 return renderInitialPrompt();
139 }
140 case "installing":
141 {
142 return renderInstalling();
143 }
144 case "install-failed":
145 {
146 return renderInstallFailed();
147 }
148 case "api-instructions":
149 {
150 return renderApiInstructions();
151 }
152 case "verifying":
153 {
154 return renderVerifying();
155 }
156 case "success":
157 {
158 return renderSuccess();
159 }
160 case "failed":
161 {
162 return renderFailed();
163 }
164 default:
165 {
166 return null;
167 }
168 }
169 };
170 function renderInitialPrompt() {
171 const options = [{
172 label: "Install it2 now",

Callers 1

It2SetupPromptFunction · 0.85

Calls 7

renderInitialPromptFunction · 0.85
renderInstallingFunction · 0.85
renderInstallFailedFunction · 0.85
renderApiInstructionsFunction · 0.85
renderVerifyingFunction · 0.85
renderSuccessFunction · 0.85
renderFailedFunction · 0.85

Tested by

no test coverage detected