import BranchingQuestions from "../branchingQuestions";
import HelpQuestions from "../helpQuestions";
import SettingRating from "./settingRating";

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

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