diff options
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; |
