File size: 509 Bytes
bcce530
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Suspense } from "react"
import { Loader2 } from "lucide-react"

function AnalyticsLoading() {
    return (
        <div className="container mx-auto px-4 py-16 flex items-center justify-center">
            <Loader2 className="h-8 w-8 animate-spin text-primary" />
        </div>
    )
}

export default function AnalyticsLayout({
    children,
}: {
    children: React.ReactNode
}) {
    return (
        <Suspense fallback={<AnalyticsLoading />}>
            {children}
        </Suspense>
    )
}