aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/QuizSection.tsx
blob: 27dc3841cbdf8bc7c8f3ffad626c61676cae6d0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;