import React from 'react'; import JSONTree from 'react-json-tree'; import useDataSaver from 'lib/hooks/useDataSaver'; import theme from './themes/google'; import DynamicButton from './DynamicButton'; interface JSONViewerProps { data: { [key: string]: string; }; } const JSONViewer: React.FC = ({ data }) => { const { copyToClipboard, saveFile } = useDataSaver(); const copyButtonHandler = () => { copyToClipboard(JSON.stringify(data)); }; const buttonClasses = 'button is-link is-outlined is-small is-centered'; return (
true} hideRoot />
); }; export default JSONViewer;