import React from 'react'; import { Box, Button, Modal, SxProps, Typography } from '@mui/material'; import { modalStyle } from './styles'; export const ErrorModal: FCWithChildren<{ open: boolean; title?: string; message?: string; sx?: SxProps; backdropProps?: object; onClose: () => void; children?: React.ReactNode; }> = ({ children, open, title, message, sx, backdropProps, onClose }) => ( `1px solid ${t.palette.nym.nymWallet.modal.border}`, ...modalStyle, ...sx }} textAlign="center" > theme.palette.error.main} mb={1}> {title || 'Oh no! Something went wrong...'} {message} {children} );