frontPanel/src/pages/Questions/PageOptions/switchPageOptions.tsx

24 lines
586 B
TypeScript
Raw Normal View History

import { QuizQuestionPage } from "@model/questionTypes/page";
import HelpQuestions from "../helpQuestions";
import SettingPageOptions from "./SettingPageOptions";
interface Props {
switchState: string;
question: QuizQuestionPage;
}
2023-08-24 11:09:47 +00:00
export default function SwitchPageOptions({
switchState = "setting",
question,
2023-08-24 11:09:47 +00:00
}: Props) {
switch (switchState) {
case "setting":
return <SettingPageOptions question={question} />;
case "help":
return <HelpQuestions question={question} />;
default:
return <></>;
}
2023-08-24 11:09:47 +00:00
}