MCPcopy Index your code
hub / github.com/triggerdotdev/jsonhero-web / PropertiesInt

Function PropertiesInt

app/components/Properties/PropertiesInt.tsx:13–37  ·  view source on GitHub ↗
({ type }: { type: JSONIntType })

Source from the content-addressed store, hash-verified

11};
12
13export function PropertiesInt({ type }: { type: JSONIntType }) {
14 if (type.format == null) {
15 return (
16 <DataTable
17 rows={[
18 {
19 key: "Formatted value",
20 value: formatValue(type) ?? "",
21 icon: <ValueIcon type={type} />,
22 },
23 {
24 key: "Type",
25 value: type.name,
26 },
27 ]}
28 />
29 );
30 }
31 switch (type.format.name) {
32 case "timestamp":
33 return <PropertiesTimestamp value={type.value} format={type.format} />;
34 default:
35 return <></>;
36 }
37}
38
39function PropertiesTimestamp({
40 value,

Callers

nothing calls this directly

Calls 1

formatValueFunction · 0.90

Tested by

no test coverage detected