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

Function Status

src/components/Settings/Status.tsx:105–190  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

103 return value;
104}
105export function Status(t0) {
106 const $ = _c(20);
107 const {
108 context,
109 diagnosticsPromise
110 } = t0;
111 const mainLoopModel = useAppState(_temp);
112 const mcp = useAppState(_temp2);
113 const [theme] = useTheme();
114 let t1;
115 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
116 t1 = buildPrimarySection();
117 $[0] = t1;
118 } else {
119 t1 = $[0];
120 }
121 let t2;
122 if ($[1] !== context || $[2] !== mainLoopModel || $[3] !== mcp || $[4] !== theme) {
123 t2 = buildSecondarySection({
124 mainLoopModel,
125 mcp,
126 theme,
127 context
128 });
129 $[1] = context;
130 $[2] = mainLoopModel;
131 $[3] = mcp;
132 $[4] = theme;
133 $[5] = t2;
134 } else {
135 t2 = $[5];
136 }
137 let t3;
138 if ($[6] !== t2) {
139 t3 = [t1, t2, buildInternalModeSection()];
140 $[6] = t2;
141 $[7] = t3;
142 } else {
143 t3 = $[7];
144 }
145 const sections = t3;
146 const grow = useIsInsideModal() ? 1 : undefined;
147 let t4;
148 if ($[8] !== sections) {
149 t4 = sections.map(_temp4);
150 $[8] = sections;
151 $[9] = t4;
152 } else {
153 t4 = $[9];
154 }
155 let t5;
156 if ($[10] !== diagnosticsPromise) {
157 t5 = <Suspense fallback={null}><Diagnostics promise={diagnosticsPromise} /></Suspense>;
158 $[10] = diagnosticsPromise;
159 $[11] = t5;
160 } else {
161 t5 = $[11];
162 }

Callers

nothing calls this directly

Calls 6

useAppStateFunction · 0.85
useThemeFunction · 0.85
buildPrimarySectionFunction · 0.85
buildSecondarySectionFunction · 0.85
buildInternalModeSectionFunction · 0.85
useIsInsideModalFunction · 0.85

Tested by

no test coverage detected