import { Button, Result } from 'antd';
import React from 'react';
import { history } from 'umi';

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

export default ServerErrorPage;
