aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/QuizSection.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-17 22:19:18 +0900
committernsfisis <nsfisis@gmail.com>2025-03-17 22:19:18 +0900
commitfacdf9357e576f6d47e7dd23f4f7b2b34f6a8d30 (patch)
tree21c6aee60b3ddc26ff88ee3273c887125bb5828f /src/components/QuizSection.tsx
parentc739bbfa7cbb68a51755254d59abf15e514795ca (diff)
downloadPHPerKaigi2025-tokens-facdf9357e576f6d47e7dd23f4f7b2b34f6a8d30.tar.gz
PHPerKaigi2025-tokens-facdf9357e576f6d47e7dd23f4f7b2b34f6a8d30.tar.zst
PHPerKaigi2025-tokens-facdf9357e576f6d47e7dd23f4f7b2b34f6a8d30.zip
commit files
Diffstat (limited to 'src/components/QuizSection.tsx')
-rw-r--r--src/components/QuizSection.tsx19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/QuizSection.tsx b/src/components/QuizSection.tsx
new file mode 100644
index 0000000..27dc384
--- /dev/null
+++ b/src/components/QuizSection.tsx
@@ -0,0 +1,19 @@
+import type { Quiz } from "../quiz";
+import FuncExpectedAnswer from "./FuncExpectedAnswer";
+import FuncMyAnswer from "./FuncMyAnswer";
+
+type Props = {
+ quiz: Quiz;
+};
+
+function QuizSection({ quiz }: Props) {
+ return (
+ <section>
+ <h3>{quiz.label}</h3>
+ <FuncExpectedAnswer quiz={quiz} />
+ <FuncMyAnswer quiz={quiz} />
+ </section>
+ );
+}
+
+export default QuizSection;