import { lazy, Suspense } from 'react'; import { Spin } from '@/shared/antd-imports'; // Lazy load Chart.js components const LazyBarChart = lazy(() => import('react-chartjs-2').then(module => ({ default: module.Bar })) ); const LazyLineChart = lazy(() => import('react-chartjs-2').then(module => ({ default: module.Line })) ); const LazyPieChart = lazy(() => import('react-chartjs-2').then(module => ({ default: module.Pie })) ); const LazyDoughnutChart = lazy(() => import('react-chartjs-2').then(module => ({ default: module.Doughnut })) ); // Lazy load Gantt components const LazyGanttChart = lazy(() => import('gantt-task-react').then(module => ({ default: module.Gantt })) ); // Chart loading fallback const ChartLoadingFallback = () => (