diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-17 22:19:18 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-17 22:19:18 +0900 |
| commit | facdf9357e576f6d47e7dd23f4f7b2b34f6a8d30 (patch) | |
| tree | 21c6aee60b3ddc26ff88ee3273c887125bb5828f /src/components/QuizSection.tsx | |
| parent | c739bbfa7cbb68a51755254d59abf15e514795ca (diff) | |
| download | PHPerKaigi2025-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.tsx | 19 |
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; |
