import React, { lazy, Suspense } from 'react'; import type { RouteObject } from 'react-router-dom'; import { Navigate } from 'react-router-dom'; import { Spin } from 'antd'; import MainLayout from './layouts/MainLayout'; const CaseList = lazy(() => import('./pages/cases/CaseList')); const Workspace = lazy(() => import('./pages/workspace/Workspace')); const Screenshots = lazy(() => import('./pages/screenshots/Screenshots')); const Transactions = lazy(() => import('./pages/transactions/Transactions')); const Analysis = lazy(() => import('./pages/analysis/Analysis')); const Review = lazy(() => import('./pages/review/Review')); const Reports = lazy(() => import('./pages/reports/Reports')); const Loading = () => (