mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
feat(playground): add AI bot layout with suspense fallback
This commit is contained in:
parent
6f26be6119
commit
c7e2b59ddf
16
src/app/(app)/problems/[id]/@ai/@bot/layout.tsx
Normal file
16
src/app/(app)/problems/[id]/@ai/@bot/layout.tsx
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { Suspense } from "react";
|
||||||
|
import { Loading } from "@/components/loading";
|
||||||
|
|
||||||
|
interface AiBotLayoutProps {
|
||||||
|
children: React.ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function AiBotLayout({
|
||||||
|
children,
|
||||||
|
}: AiBotLayoutProps) {
|
||||||
|
return (
|
||||||
|
<Suspense fallback={<Loading />}>
|
||||||
|
{children}
|
||||||
|
</Suspense>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user