2023-11-16 16:41:25 +00:00
|
|
|
import { QuizQuestionSelect } from "@model/questionTypes/select";
|
2023-03-31 15:48:49 +00:00
|
|
|
import HelpQuestions from "../helpQuestions";
|
|
|
|
import SettingDropDown from "./settingDropDown";
|
2023-11-16 16:41:25 +00:00
|
|
|
|
2023-03-31 15:48:49 +00:00
|
|
|
|
|
|
|
interface Props {
|
2023-11-16 16:41:25 +00:00
|
|
|
switchState: string;
|
|
|
|
question: QuizQuestionSelect;
|
2023-03-31 15:48:49 +00:00
|
|
|
}
|
|
|
|
|
2023-08-24 11:09:47 +00:00
|
|
|
export default function SwitchDropDown({
|
2023-11-16 16:41:25 +00:00
|
|
|
switchState = "setting",
|
|
|
|
question,
|
2023-08-24 11:09:47 +00:00
|
|
|
}: Props) {
|
2023-11-16 16:41:25 +00:00
|
|
|
switch (switchState) {
|
|
|
|
case "setting":
|
|
|
|
return <SettingDropDown question={question} />;
|
|
|
|
case "help":
|
|
|
|
return <HelpQuestions question={question} />;
|
|
|
|
default:
|
|
|
|
return <></>;
|
|
|
|
}
|
2023-08-24 11:09:47 +00:00
|
|
|
}
|