MCPcopy Create free account
hub / github.com/freecodexyz/free-code / EnvironmentLabel

Function EnvironmentLabel

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

Source from the content-addressed store, hash-verified

191 return t5;
192}
193function EnvironmentLabel(t0) {
194 const $ = _c(7);
195 const {
196 environment
197 } = t0;
198 let t1;
199 if ($[0] !== environment.name) {
200 t1 = <Text bold={true}>{environment.name}</Text>;
201 $[0] = environment.name;
202 $[1] = t1;
203 } else {
204 t1 = $[1];
205 }
206 let t2;
207 if ($[2] !== environment.environment_id) {
208 t2 = <Text dimColor={true}>({environment.environment_id})</Text>;
209 $[2] = environment.environment_id;
210 $[3] = t2;
211 } else {
212 t2 = $[3];
213 }
214 let t3;
215 if ($[4] !== t1 || $[5] !== t2) {
216 t3 = <Text>{figures.tick} Using {t1}{" "}{t2}</Text>;
217 $[4] = t1;
218 $[5] = t2;
219 $[6] = t3;
220 } else {
221 t3 = $[6];
222 }
223 return t3;
224}
225function SingleEnvironmentContent(t0) {
226 const $ = _c(6);
227 const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected