monaco-editor-lsp-next/src/app/(app)/problems/[id]/@Testcase/layout.tsx
cfngc4594 569beb0b36
Some checks failed
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
feat(layout): add layout with suspense boundary for problem
2025-04-16 18:05:55 +08:00

17 lines
426 B
TypeScript

import { Suspense } from "react";
import { Loading } from "@/components/loading";
interface TestcaseLayoutProps {
children: React.ReactNode;
}
export default function TestcaseLayout({ children }: TestcaseLayoutProps) {
return (
<div className="relative h-full border border-t-0 border-muted rounded-b-3xl bg-background">
<Suspense fallback={<Loading />}>
{children}
</Suspense>
</div>
);
}