26 lines
725 B
TypeScript
26 lines
725 B
TypeScript
'use client';
|
|
|
|
import { lazy, Suspense } from 'react';
|
|
import { AppShell } from '@/components/layouts/AppShell/AppShell';
|
|
import { ProtectedRoute } from '@/components/common/ProtectedRoute';
|
|
import { LoadingFallback } from '@/components/common/LoadingFallback';
|
|
|
|
// Lazy load the insights dashboard component
|
|
const InsightsDashboard = lazy(() =>
|
|
import('@/components/features/analytics/InsightsDashboard').then((mod) => ({
|
|
default: mod.InsightsDashboard,
|
|
}))
|
|
);
|
|
|
|
export default function InsightsPage() {
|
|
return (
|
|
<ProtectedRoute>
|
|
<AppShell>
|
|
<Suspense fallback={<LoadingFallback variant="page" />}>
|
|
<InsightsDashboard />
|
|
</Suspense>
|
|
</AppShell>
|
|
</ProtectedRoute>
|
|
);
|
|
}
|