mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
23 lines
443 B
TypeScript
23 lines
443 B
TypeScript
// src/app/master-data/(suspense)/layout.tsx
|
|
'use client';
|
|
|
|
import { Suspense } from 'react';
|
|
|
|
export default function SuspenseLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<Suspense
|
|
fallback={
|
|
<div className='w-full flex flex-row justify-center items-center p-4'>
|
|
<span className='loading loading-spinner loading-xl' />
|
|
</div>
|
|
}
|
|
>
|
|
{children}
|
|
</Suspense>
|
|
);
|
|
}
|