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

Function PropertyValue

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

Source from the content-addressed store, hash-verified

58 return [...(await buildInstallationDiagnostics()), ...(await buildInstallationHealthDiagnostics()), ...(await buildMemoryDiagnostics())];
59}
60function PropertyValue(t0) {
61 const $ = _c(8);
62 const {
63 value
64 } = t0;
65 if (Array.isArray(value)) {
66 let t1;
67 if ($[0] !== value) {
68 let t2;
69 if ($[2] !== value.length) {
70 t2 = (item, i) => <Text key={i}>{item}{i < value.length - 1 ? "," : ""}</Text>;
71 $[2] = value.length;
72 $[3] = t2;
73 } else {
74 t2 = $[3];
75 }
76 t1 = value.map(t2);
77 $[0] = value;
78 $[1] = t1;
79 } else {
80 t1 = $[1];
81 }
82 let t2;
83 if ($[4] !== t1) {
84 t2 = <Box flexWrap="wrap" columnGap={1} flexShrink={99}>{t1}</Box>;
85 $[4] = t1;
86 $[5] = t2;
87 } else {
88 t2 = $[5];
89 }
90 return t2;
91 }
92 if (typeof value === "string") {
93 let t1;
94 if ($[6] !== value) {
95 t1 = <Text>{value}</Text>;
96 $[6] = value;
97 $[7] = t1;
98 } else {
99 t1 = $[7];
100 }
101 return t1;
102 }
103 return value;
104}
105export function Status(t0) {
106 const $ = _c(20);
107 const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected