16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
'use client';
|
|
|
|
import dynamic from 'next/dynamic';
|
|
|
|
export const AdminShell = dynamic(
|
|
() => import('./admin-shell').then((mod) => mod.AdminShell),
|
|
{
|
|
ssr: false,
|
|
loading: () => (
|
|
<div className="flex h-screen items-center justify-center">
|
|
<div className="h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" />
|
|
</div>
|
|
),
|
|
},
|
|
);
|