import { useIntl, Link } from 'umi';
import { Result, Button } from 'antd';

export default () => {
  const intl = useIntl();
  return (
    <Result
      status="500"
      title="500"
      style={{
        background: 'none',
      }}
      subTitle={intl.formatMessage({ id: '500' })}
      extra={
        <Link to="/">
          <Button type="primary">
            {intl.formatMessage({ id: 'BackToHome' })}
          </Button>
        </Link>
      }
    />
  );
};
