({
value,
format,
}: {
value: string;
format: JSONJSONFormat;
})
| 79 | } |
| 80 | |
| 81 | function PreviewJson({ |
| 82 | value, |
| 83 | format, |
| 84 | }: { |
| 85 | value: string; |
| 86 | format: JSONJSONFormat; |
| 87 | }) { |
| 88 | if (format.variant === "json5") { |
| 89 | return <></>; |
| 90 | } |
| 91 | |
| 92 | return <CodeViewer code={JSON.stringify(JSON.parse(value), null, 2)} />; |
| 93 | } |
| 94 | |
| 95 | function PreviewColor({ |
| 96 | value, |
nothing calls this directly
no outgoing calls
no test coverage detected