2023-11-29 15:45:15 +00:00
|
|
|
|
|
|
|
import {
|
|
|
|
Box,
|
|
|
|
} from "@mui/material";
|
|
|
|
import { DraggableList } from "./DraggableList";
|
2023-12-05 23:34:40 +00:00
|
|
|
import { SwitchBranchingPanel } from "./SwitchBranchingPanel";
|
2023-11-29 15:45:15 +00:00
|
|
|
import { BranchingMap } from "./BranchingMap";
|
2023-12-04 11:44:08 +00:00
|
|
|
import {useQuestionsStore} from "@root/questions/store";
|
2023-11-29 15:45:15 +00:00
|
|
|
|
|
|
|
|
2023-12-04 11:44:08 +00:00
|
|
|
export const QuestionSwitchWindowTool = () => {
|
2023-12-09 21:04:26 +00:00
|
|
|
const {openBranchingPanel, questions} = useQuestionsStore.getState()
|
|
|
|
console.log("questions ", questions)
|
2023-11-29 15:45:15 +00:00
|
|
|
return (
|
|
|
|
<Box sx={{ display: "flex", gap: "20px", flexWrap: "wrap" }}>
|
|
|
|
<Box sx={{ flexBasis: "796px" }}>
|
2023-12-04 11:44:08 +00:00
|
|
|
{openBranchingPanel? <BranchingMap /> : <DraggableList />}
|
2023-11-29 15:45:15 +00:00
|
|
|
</Box>
|
2023-12-05 23:34:40 +00:00
|
|
|
<SwitchBranchingPanel
|
2023-11-29 15:45:15 +00:00
|
|
|
/>
|
|
|
|
</Box>
|
|
|
|
)
|
|
|
|
}
|