UNPKG

@uiw-admin/exceptions

Version:
35 lines 1.05 kB
import { Button } from 'uiw'; import { useNavigate } from 'react-router'; import './styles/index.css'; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; var Exception404 = _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 imgs404" }) }), /*#__PURE__*/_jsxs("div", { className: "contents", children: [/*#__PURE__*/_jsx("h1", { children: "404" }), /*#__PURE__*/_jsx("h2", { children: "\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728" }), /*#__PURE__*/_jsx(Button, { onClick: () => navigate(path, { replace: true }), type: "primary", children: btnText })] })] }); }; export default Exception404;