aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/Gaming/ProblemColumn.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/components/Gaming/ProblemColumn.tsx')
-rw-r--r--frontend/app/components/Gaming/ProblemColumn.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/frontend/app/components/Gaming/ProblemColumn.tsx b/frontend/app/components/Gaming/ProblemColumn.tsx
index 3b7e58c..a355ac4 100644
--- a/frontend/app/components/Gaming/ProblemColumn.tsx
+++ b/frontend/app/components/Gaming/ProblemColumn.tsx
@@ -1,20 +1,27 @@
+import type { SupportedLanguage } from "../../types/SupportedLanguage";
import TitledColumn from "../TitledColumn";
import ProblemColumnContent from "./ProblemColumnContent";
type Props = {
title: string;
description: string;
+ language: SupportedLanguage;
sampleCode: string;
};
export default function ProblemColumn({
title,
description,
+ language,
sampleCode,
}: Props) {
return (
<TitledColumn title={title}>
- <ProblemColumnContent description={description} sampleCode={sampleCode} />
+ <ProblemColumnContent
+ description={description}
+ sampleCode={sampleCode}
+ language={language}
+ />
</TitledColumn>
);
}