import * as React from "react";
import BranchingQuestions from "../branchingQuestions";
import SettingOpytionsPict from "./settingOpytionsPict";
import HelpQuestions from "../helpQuestions";

interface Props {
  switchState: string;
  totalIndex: number;
}

export default function SwitchAnswerOptionsPict({
  switchState = "setting",
  totalIndex,
}: Props) {
  switch (switchState) {
    case "setting":
      return <SettingOpytionsPict />;
      break;
    case "help":
      return <HelpQuestions totalIndex={totalIndex} />;
      break;
    case "branching":
      return <BranchingQuestions totalIndex={totalIndex}/>;
      break;
    default:
      return <></>;
  }
}
