JSONViewer.tsx 368 B

12345678910111213
  1. import React from 'react';
  2. import JSONTree from 'react-json-tree';
  3. import theme from 'components/common/JSONViewer/themes/google';
  4. interface JSONViewerProps {
  5. data: Record<string, string>;
  6. }
  7. const JSONViewer: React.FC<JSONViewerProps> = ({ data }) => (
  8. <JSONTree data={data} theme={theme} shouldExpandNode={() => true} hideRoot />
  9. );
  10. export default JSONViewer;