import { Box, Button, FormControl, FormControlLabel, IconButton, Link, MenuItem, Modal, Radio, RadioGroup, Select, SelectChangeEvent, TextField, Typography, useTheme, } from "@mui/material"; import * as React from "react"; import ArrowDown from "@icons/ArrowDownIcon"; import { useState } from "react"; import { questionStore, resetSomeField } from "@root/questions"; import DeleteIcon from "@icons/questionsPage/deleteIcon"; import RadioCheck from "@ui_kit/RadioCheck"; import RadioIcon from "@ui_kit/RadioIcon"; import InfoIcon from "../../assets/icons/Info"; export default function BranchingQuestions() { const { openedModalSettings } = questionStore(); const theme = useTheme(); const [condition, setCondition] = useState(false); const handleClose = () => { resetSomeField({ openedModalSettings: "" }); }; const [display, setDisplay] = React.useState("1"); const handleChange = (event: SelectChangeEvent) => { setDisplay(event.target.value); }; const [value, setValue] = React.useState("1"); const handleChangeRadio = (event: React.ChangeEvent) => { setValue((event.target as HTMLInputElement).value); }; return ( <> () если в ответе на вопрос {condition ? ( Условие 1 Дан ответ (Укажите один или несколько вариантов) ) : ( "" )} setCondition(true)} > Добавить условие } icon={} /> } label="Все условия обязательны" /> } icon={} /> } label="Обязательно хотя бы одно условие" /> ); }