import React from "react";
import { Button, Result } from "antd";
import { useNavigate } from "react-router";

const ForbiddenPage: React.FC = () => {
  const navigate = useNavigate();
  return (
    <div className="h-screen w-full flex items-center justify-center bg-[#050b14]">
      <Result
        status="403"
        title="403"
        subTitle="你当前账号没有访问该页面的权限。"
        extra={
          <Button type="primary" onClick={() => navigate("/data/management")}>
            返回首页
          </Button>
        }
      />
    </div>
  );
};

export default ForbiddenPage;

