import * as React from 'react';
import BranchingQuestions from "../branchingQuestions";
import HelpQuestions from "../helpQuestions";
import SettingTextField from "./settingTextField";


interface Props {
    switchState: string,
}

export default function SwitchTextField({switchState = 'setting' }: Props) {

    switch (switchState) {
        case 'setting':
            return (<SettingTextField/>);
            break;
        case 'help':
            return (<HelpQuestions/>);
            break
        case 'branching':
            return (<BranchingQuestions/>);
            break;
        default:
            return (<></>)
    }
}