MCPcopy Create free account
hub / github.com/Noumena-Network/code / SingleEnvironmentContent

Function SingleEnvironmentContent

src/components/RemoteEnvironmentDialog.tsx:225–259  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

223 return t3;
224}
225function SingleEnvironmentContent(t0) {
226 const $ = _c(6);
227 const {
228 environment,
229 onDone
230 } = t0;
231 let t1;
232 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
233 t1 = {
234 context: "Confirmation"
235 };
236 $[0] = t1;
237 } else {
238 t1 = $[0];
239 }
240 useKeybinding("confirm:yes", onDone, t1);
241 let t2;
242 if ($[1] !== environment) {
243 t2 = <EnvironmentLabel environment={environment} />;
244 $[1] = environment;
245 $[2] = t2;
246 } else {
247 t2 = $[2];
248 }
249 let t3;
250 if ($[3] !== onDone || $[4] !== t2) {
251 t3 = <Dialog title={DIALOG_TITLE} subtitle={SETUP_HINT} onCancel={onDone}>{t2}</Dialog>;
252 $[3] = onDone;
253 $[4] = t2;
254 $[5] = t3;
255 } else {
256 t3 = $[5];
257 }
258 return t3;
259}
260function MultipleEnvironmentsContent(t0) {
261 const $ = _c(18);
262 const {

Callers

nothing calls this directly

Calls 1

useKeybindingFunction · 0.85

Tested by

no test coverage detected