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 (<></>)
    }
}