2023-08-24 11:09:47 +00:00
|
|
|
import * as React from "react";
|
2023-03-30 18:39:59 +00:00
|
|
|
import BranchingQuestions from "../branchingQuestions";
|
|
|
|
import SettingOptionsAndPict from "./SettingOptionsAndPict";
|
|
|
|
import HelpQuestions from "../helpQuestions";
|
|
|
|
import UploadImage from "../UploadImage";
|
|
|
|
|
|
|
|
interface Props {
|
2023-08-24 11:09:47 +00:00
|
|
|
switchState: string;
|
|
|
|
totalIndex: number;
|
2023-03-30 18:39:59 +00:00
|
|
|
}
|
|
|
|
|
2023-08-24 11:09:47 +00:00
|
|
|
export default function SwitchOptionsAndPict({
|
|
|
|
switchState = "setting",
|
|
|
|
totalIndex,
|
|
|
|
}: Props) {
|
|
|
|
switch (switchState) {
|
|
|
|
case "setting":
|
|
|
|
return <SettingOptionsAndPict />;
|
|
|
|
break;
|
|
|
|
case "help":
|
|
|
|
return <HelpQuestions totalIndex={totalIndex} />;
|
|
|
|
break;
|
|
|
|
case "branching":
|
|
|
|
return <BranchingQuestions />;
|
|
|
|
break;
|
|
|
|
case "image":
|
|
|
|
return <UploadImage />;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return <></>;
|
|
|
|
}
|
|
|
|
}
|