mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-07 06:33:04 -04:00
33 lines
803 B
TypeScript
33 lines
803 B
TypeScript
import { Button, makeStyles, Paper, Typography } from '@material-ui/core';
|
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
logsOuter: {
|
|
overflow: 'auto',
|
|
padding: theme.spacing(1),
|
|
marginTop: theme.spacing(1),
|
|
marginBottom: theme.spacing(1),
|
|
maxHeight: '10rem',
|
|
},
|
|
copyButton: {
|
|
marginTop: theme.spacing(1),
|
|
},
|
|
}));
|
|
|
|
export default function PaperTextBox({ stdOut }: { stdOut: string }) {
|
|
const classes = useStyles();
|
|
|
|
function handleCopyLogs() {
|
|
throw new Error('Not implemented');
|
|
}
|
|
|
|
return (
|
|
<Paper className={classes.logsOuter} variant="outlined">
|
|
<Typography component="pre" variant="body2">
|
|
{stdOut}
|
|
</Typography>
|
|
<Button onClick={handleCopyLogs} className={classes.copyButton}>
|
|
Copy
|
|
</Button>
|
|
</Paper>
|
|
);
|
|
}
|