import { ErrorOutline, Warning } from '@mui/icons-material' import FileDownloadIcon from '@mui/icons-material/FileDownload' import { LogObject, download, clearErrorsAndWarningsHtmlWrapping } from '../../../../../utils' import Tooltip from '@mui/material/Tooltip' import classes from './log.module.css' interface LogTabProps { log: LogObject } const LogTabWithIcons = (props: LogTabProps) => { const { errors, warnings, body } = props.log return (
log {errors && errors.length !== 0 && ( )} {warnings && warnings.length !== 0 && ( )} { download(evt, clearErrorsAndWarningsHtmlWrapping(body)) }} >
) } export default LogTabWithIcons