import React, { FC, HTMLAttributes } from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
import ReactJson from 'react-json-view';
import copy from 'copy-to-clipboard';
function TabPanel(props: any) {
const { children, value, index, ...other } = props;
return (
{value === index && {children}}
);
}
TabPanel.propTypes = {
children: PropTypes.node,
index: PropTypes.any.isRequired,
value: PropTypes.any.isRequired,
};
function a11yProps(index: any) {
return {
id: `simple-tab-${index}`,
'aria-controls': `simple-tabpanel-${index}`,
};
}
const useStyles = makeStyles(() => ({
root: {
flexGrow: 1,
// backgroundColor: '#bdbdbd',
},
}));
export interface IWalletContentsTableDetailsProps
extends HTMLAttributes {
document: any;
}
export const ContentTableRow: FC = ({
document,
}) => {
const classes = useStyles();
const [value, setValue] = React.useState(0);
const handleChange = (_event: any, newValue: any) => {
setValue(newValue);
};
return (
{
copy(JSON.stringify(data.src, null, 2));
}}
/>
);
};