import { notFound } from "next/navigation"; import { ProblemHeader } from "@/features/problems/components/header"; interface ProblemLayoutProps { children: React.ReactNode; params: Promise<{ problemId: string }>; } export default async function ProblemLayout({ children, params, }: ProblemLayoutProps) { const { problemId } = await params; if (!problemId) { return notFound(); } return (
{children}
); }