diff --git a/client/www/components/dash/sandbox/Data.tsx b/client/www/components/dash/sandbox/Data.tsx new file mode 100644 index 000000000..cd24e7cd8 --- /dev/null +++ b/client/www/components/dash/sandbox/Data.tsx @@ -0,0 +1,31 @@ +import Json from '@uiw/react-json-view'; + +export function Data({ + data, + collapsed, +}: { + data: any; + collapsed?: boolean | number; +}) { + const isObject = typeof data === 'object' && data !== null; + + return ( +
+ {JSON.stringify(data) ?? 'undefined'} ++ )} +
+ {output.data.message} ++
{cr.id}
+
+ {cr.program?.['display-code'] ?? (
+ none
+ )}
+
+ + + Success + {' '} + All checks passed! +
+ ) : ( ++ + Failed + {' '} + Some checks did not pass. +
+ )} + + {output.data.response['committed?'] ? null : ( ++ + Dry run + {' '} + Changes were not written to the database. +
+ )} + +{cr.eid}
+
+ {cr.program?.['display-code'] ?? (
+ none
+ )}
+
+ - {o.data.message} --
{cr.id}
-
- {cr.program?.['display-code'] ?? (
- none
- )}
-
- - - Success - {' '} - All checks passed! -
- ) : ( -- - Failed - {' '} - Some checks did not pass. -
- )} - - {o.data.response['committed?'] ? null : ( -- - Dry run - {' '} - Changes were not written to the database. -
- )} - -{cr.eid}
-
- {cr.program?.['display-code'] ?? (
- none
- )}
-
- - {JSON.stringify(data) ?? 'undefined'} -- )} -