({ type }: { type: JSONIntType })
| 11 | }; |
| 12 | |
| 13 | export 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 | |
| 39 | function PropertiesTimestamp({ |
| 40 | value, |
nothing calls this directly
no test coverage detected