import React from "react"; import PropTypes from "prop-types"; import Alert from "@mui/material/Alert"; import AlertTitle from "@mui/material/AlertTitle"; import Button from "@mui/material/Button"; class Error extends React.Component { static propTypes = { clearError: PropTypes.func.isRequired, clearToken: PropTypes.func.isRequired, error: PropTypes.string.isRequired }; render() { return (
Internal server error

{this.props.error}

); } } export default Error;