import Icon, { SettingOutlined } from '@ant-design/icons' import { AdminRouterItem } from "../../router/index.tsx"; import React, { Suspense } from 'react'; import LogoIcon from "@src/assets/images/login/logo.svg?react"; // Lazy load components const Setting = React.lazy(() => import('./setting.tsx')); // Loading fallback component // eslint-disable-next-line react-refresh/only-export-components const LazyLoadingFallback = () => (
加载中
); // Wrapper component with Suspense // eslint-disable-next-line react-refresh/only-export-components const LazyComponent = ({ Component }: { Component: React.ComponentType }) => ( }> ); const demoRoutes: AdminRouterItem[] = [ { path: 'setting', element: , sortKey: 5, meta: { label: "设置", title: "设置", key: "/setting", icon: , }, } ] export default demoRoutes