23 lines
515 B
TypeScript
23 lines
515 B
TypeScript
import { QuizQuestionDate } from "@model/questionTypes/date";
|
|
import HelpQuestions from "../helpQuestions";
|
|
import SettingData from "./settingData";
|
|
|
|
interface Props {
|
|
switchState: string;
|
|
question: QuizQuestionDate;
|
|
}
|
|
|
|
export default function SwitchData({
|
|
switchState = "setting",
|
|
question,
|
|
}: Props) {
|
|
switch (switchState) {
|
|
case "setting":
|
|
return <SettingData question={question} />;
|
|
case "help":
|
|
return <HelpQuestions question={question} />;
|
|
default:
|
|
return <></>;
|
|
}
|
|
}
|