From c7e2b59ddf3a87240cce49508395c1430ce6a920 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Mon, 24 Mar 2025 19:57:07 +0800 Subject: [PATCH] feat(playground): add AI bot layout with suspense fallback --- src/app/(app)/problems/[id]/@ai/@bot/layout.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/app/(app)/problems/[id]/@ai/@bot/layout.tsx diff --git a/src/app/(app)/problems/[id]/@ai/@bot/layout.tsx b/src/app/(app)/problems/[id]/@ai/@bot/layout.tsx new file mode 100644 index 0000000..8185d75 --- /dev/null +++ b/src/app/(app)/problems/[id]/@ai/@bot/layout.tsx @@ -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 ( + }> + {children} + + ); +}