import { history } from '@umijs/max';
import { Button, Result, Space } from 'antd';
import React from 'react';

const NoFoundPage: React.FC = () => (
  <Result
    status="404"
    title="404"
    subTitle="对不起，你访问的页面不存在！"
    extra={
      <Space size="large">
        <Button type="primary" onClick={() => history.push('/')}>
          返回工作台
        </Button>
        <Button type="primary" onClick={() => history.back()}>
          返回
        </Button>
      </Space>
    }
  />
);

export default NoFoundPage;
