mirror of
https://github.com/massbug/judge4c.git
synced 2025-07-04 15:50:51 +00:00
20 lines
464 B
TypeScript
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;
|