500.js 462 Bytes
import React from 'react';

import { Result } from 'antd';

export default props => (
  <Result
    status="500"
    title="500"
    style={{
      background: 'none',
    }}
    subTitle={
      props.message ||
      // eslint-disable-next-line no-restricted-globals
      (history.state && history.state.message) ||
      'Sorry, the server is reporting an error.'
    }
    extra={
      null
      // <Button type="primary">Back Home</Button>
    }
  />
);