import { Box } from "@mui/material"; import { FirstNodeField } from "./FirstNodeField"; import { CsComponent } from "./CsComponent"; import { useQuestionsStore } from "@root/questions/store" import { useCurrentQuiz } from "@root/quizes/hooks"; import { useState } from "react"; import {BranchingQuestionsModal} from "../BranchingQuestionsModal" export const BranchingMap = () => { const quiz = useCurrentQuiz(); const { dragQuestionContentId } = useQuestionsStore() const [modalQuestionParentContentId, setModalQuestionParentContentId] = useState("") const [modalQuestionTargetContentId, setModalQuestionTargetContentId] = useState("") const [openedModalQuestions, setOpenedModalQuestions] = useState(false) return ( { quiz?.config.haveRoot ? : } ); };