From 35d1be206c6be675d92839cfa209fceb5d1b6db9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 15 Mar 2025 21:10:51 +0900 Subject: feat(frontend): show sample code in watch page --- frontend/app/components/Gaming/Problem.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 frontend/app/components/Gaming/Problem.tsx (limited to 'frontend/app/components/Gaming/Problem.tsx') diff --git a/frontend/app/components/Gaming/Problem.tsx b/frontend/app/components/Gaming/Problem.tsx new file mode 100644 index 0000000..1584a5a --- /dev/null +++ b/frontend/app/components/Gaming/Problem.tsx @@ -0,0 +1,24 @@ +import BorderedContainerWithCaption from "../BorderedContainerWithCaption"; +import CodeBlock from "./CodeBlock"; + +type Props = { + title: string; + description: string; + sampleCode: string; +}; + +export default function Problem({ title, description, sampleCode }: Props) { + return ( +
+
{title}
+ +
+					{description}
+				
+
+ + + +
+ ); +} -- cgit v1.2.3-70-g09d2