26 lines
621 B
TypeScript
26 lines
621 B
TypeScript
import * as React from 'react';
|
|
import HelpQuestions from "../helpQuestions";
|
|
import SettingData from "./settingData";
|
|
import BranchingQuestions from "../branchingQuestions";
|
|
|
|
|
|
interface Props {
|
|
switchState: string,
|
|
}
|
|
|
|
export default function SwitchData({switchState = 'setting' }: Props) {
|
|
|
|
switch (switchState) {
|
|
case 'setting':
|
|
return (<SettingData/>);
|
|
break;
|
|
case 'help':
|
|
return (<HelpQuestions/>);
|
|
break
|
|
case 'branching':
|
|
return (<BranchingQuestions/>);
|
|
break;
|
|
default:
|
|
return (<></>)
|
|
}
|
|
} |