monaco-editor-lsp-next/src/app/(protected)/admin/problems/[problemId]/edit/layout.tsx
2025-06-20 17:37:00 +08:00

20 lines
464 B
TypeScript

import { notFound } from "next/navigation";
import { ProblemEditLayout } from "@/features/admin/ui/layouts/problem-edit-layout";
interface LayoutProps {
children: React.ReactNode;
params: Promise<{ problemId: string }>;
}
const Layout = async ({ children, params }: LayoutProps) => {
const { problemId } = await params;
if (!problemId) {
return notFound();
}
return <ProblemEditLayout>{children}</ProblemEditLayout>;
};
export default Layout;