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/QuizGroupSection.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/QuizGroupSection.tsx')
| -rw-r--r-- | src/components/QuizGroupSection.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/QuizGroupSection.tsx b/src/components/QuizGroupSection.tsx new file mode 100644 index 0000000..b2bbee7 --- /dev/null +++ b/src/components/QuizGroupSection.tsx @@ -0,0 +1,19 @@ +import type { QuizGroup } from "../quiz"; +import QuizSection from "./QuizSection"; + +type Props = { + quizGroup: QuizGroup; +}; + +function QuizGroupSection({ quizGroup }: Props) { + return ( + <section> + <h2>{quizGroup.label}</h2> + {quizGroup.quizzes.map((quiz) => ( + <QuizSection key={quiz.label} quiz={quiz} /> + ))} + </section> + ); +} + +export default QuizGroupSection; |
