diff --git a/src/app/problems/[problemNum]/page.tsx b/src/app/problems/[problemNum]/page.tsx index c3cabc7..7f12763 100644 --- a/src/app/problems/[problemNum]/page.tsx +++ b/src/app/problems/[problemNum]/page.tsx @@ -1,10 +1,37 @@ "use client"; -import { useFetchProblemNum } from "@/hooks"; -import { problemNumSchema } from "@/schema"; import { AxiosError } from "axios"; import { z } from "zod"; + import Error from "@/components/error"; +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/components/ui/card" +import { useFetchProblemNum } from "@/hooks"; +import { problemNumSchema } from "@/schema"; + + +type ChartCard = { + title: string; + chart: React.ReactNode; +} +const ChartCard = ({title, chart}: ChartCard) => { + return ( + + + {title} + + + {chart} + + + ); +} type problemPageProps = { params: z.infer; @@ -57,7 +84,22 @@ const ProblemPage = ({ params }: problemPageProps) => { console.log("problem page: ", params.problemNum); return (
-

Problem page: {params.problemNum}

+

Problem page: {params.problemNum}

+
+
+ +
+
+ +
+
+ +
+
+
+
ranklist
+
submissions
+
); };