import { Box, Button, FormControl, FormControlLabel, IconButton, Link, Modal, Radio, RadioGroup, Typography, useTheme, } from "@mui/material"; import * as React from "react"; import { useState } from "react"; import { questionStore, resetSomeField } from "@root/questions"; import { Select } from "./Select"; import DeleteIcon from "@icons/questionsPage/deleteIcon"; import RadioCheck from "@ui_kit/RadioCheck"; import RadioIcon from "@ui_kit/RadioIcon"; import InfoIcon from "@icons/Info"; export default function BranchingQuestions() { const [value, setValue] = useState("1"); const [conditionSelected, setConditionSelected] = useState(false); const { openedModalSettings } = questionStore(); const theme = useTheme(); const [condition, setCondition] = useState(false); const handleClose = () => { resetSomeField({ openedModalSettings: "" }); }; const handleChangeRadio = (event: React.ChangeEvent) => { setValue((event.target as HTMLInputElement).value); }; return ( <> () setConditionSelected(true)} sx={{ marginBottom: "15px" }} /> {conditionSelected && ( <> Дан ответ (Укажите один или несколько вариантов)