text: import React from 'react';
  import PropTypes from 'prop-types';
  
  
  class ErrorPage extends React.Component {
    static propTypes = {
      error: PropTypes.shape({
        name: PropTypes.string.isRequired,
        message: PropTypes.string.isRequired,
        stack: PropTypes.string.isRequired,
      }).isRequired,
    };
  
    render() {
      return (
        <div>
          <h1>Error</h1>
          <p>Sorry, a critical error occurred on this page.</p>
        </div>
      );
    }
  }
  
  export default ErrorPage;
  