/**
 * KRA - 500 Server Error Page
 */
import React from 'react';
import { Button, Result } from 'antd';
import { history } from '@umijs/max';

const ServerErrorPage: React.FC = () => {
  return (
    <Result
      status="500"
      title="500"
      subTitle="抱歉，服务器出错了"
      extra={
        <Button type="primary" onClick={() => history.push('/')}>
          返回首页
        </Button>
      }
    />
  );
};

export default ServerErrorPage;
