judge4c/src/app/(app)/problems/[problemId]/page.tsx

18 lines
460 B
TypeScript
Raw Normal View History

2025-06-20 08:39:47 +00:00
import { ProblemView } from "@/features/problems/ui/views/problem-view";
2025-06-20 08:39:47 +00:00
interface PageProps {
params: Promise<{ problemId: string }>;
searchParams: Promise<{
submissionId: string | undefined;
}>;
}
2025-06-20 08:39:47 +00:00
const Page = async ({ params, searchParams }: PageProps) => {
const { problemId } = await params;
const { submissionId } = await searchParams;
2025-06-20 08:39:47 +00:00
return <ProblemView problemId={problemId} submissionId={submissionId} />;
};
2025-06-20 08:39:47 +00:00
export default Page;