feat(playground): add AI bot layout with suspense fallback

This commit is contained in:
cfngc4594 2025-03-24 19:57:07 +08:00
parent 6f26be6119
commit c7e2b59ddf

View 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>
);
}