UNPKG

@uiw-admin/exceptions

Version:
35 lines 1.06 kB
import { Button } from 'uiw'; import './styles/index.css'; import { useNavigate } from 'react-router'; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; var Exception403 = _ref => { var { path = '/home', btnText = '返回首页' } = _ref; var navigate = useNavigate(); return /*#__PURE__*/_jsxs("div", { className: "exceptions", children: [/*#__PURE__*/_jsx("div", { className: "contentimgs", children: /*#__PURE__*/_jsx("div", { className: "imgscontent imgs403" }) }), /*#__PURE__*/_jsxs("div", { className: "contents", children: [/*#__PURE__*/_jsx("h1", { children: "403" }), /*#__PURE__*/_jsx("h2", { children: "\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762" }), /*#__PURE__*/_jsx(Button, { onClick: () => navigate(path, { replace: true }), type: "primary", children: "\u8FD4\u56DE\u9996\u9875" })] })] }); }; export default Exception403;