frontPanel/src/pages/Questions/answerOptions/switchAnswerOptions.tsx

30 lines
765 B
TypeScript
Raw Normal View History

import * as React from 'react';
import UploadImage from "../UploadImage";
import HelpQuestions from "../helpQuestions";
import ResponseSettings from "./responseSettings";
import BranchingQuestions from "../branchingQuestions";
interface Props {
switchState: string,
}
export default function SwitchAnswerOptions({switchState = 'setting' }: Props) {
switch (switchState) {
case 'setting':
return (<ResponseSettings/>);
break;
case 'help':
return (<HelpQuestions/>);
break
case 'branching':
return (<BranchingQuestions/>);
break;
case 'image':
return (<UploadImage/>);
break;
default:
return (<></>)
}
}