2024-06-21 22:35:56 +01:00
|
|
|
import Typography from '@mui/material/Typography';
|
|
|
|
|
import { Box, Stack, TextField } from '@mui/material';
|
|
|
|
|
import Button from '@mui/material/Button';
|
|
|
|
|
import DownloadIcon from '@mui/icons-material/Download';
|
|
|
|
|
import ContentPasteIcon from '@mui/icons-material/ContentPaste';
|
|
|
|
|
import React from 'react';
|
2024-06-21 20:06:07 +01:00
|
|
|
|
2024-06-21 22:35:56 +01:00
|
|
|
export default function ToolTextResult({
|
|
|
|
|
title = 'Result',
|
|
|
|
|
value
|
|
|
|
|
}: {
|
|
|
|
|
title?: string;
|
|
|
|
|
value: string;
|
|
|
|
|
}) {
|
2024-06-21 20:06:07 +01:00
|
|
|
return (
|
|
|
|
|
<Box>
|
|
|
|
|
<Typography fontSize={30} color={'primary'}>
|
|
|
|
|
{title}
|
|
|
|
|
</Typography>
|
|
|
|
|
<TextField value={value} fullWidth multiline rows={10} />
|
|
|
|
|
<Stack mt={1} direction={'row'} spacing={2}>
|
|
|
|
|
<Button startIcon={<DownloadIcon />}>Save as</Button>
|
|
|
|
|
<Button startIcon={<ContentPasteIcon />}>Copy to clipboard</Button>
|
|
|
|
|
</Stack>
|
|
|
|
|
</Box>
|
2024-06-21 22:35:56 +01:00
|
|
|
);
|
2024-06-21 20:06:07 +01:00
|
|
|
}
|