import { Box, Typography } from "@mui/material"; import CustomCheckbox from "@ui_kit/CustomCheckbox"; import InfoIcon from "../../../assets/icons/InfoIcon"; import CustomTextField from "@ui_kit/CustomTextField"; import { questionStore, updateQuestionsList } from "@root/questions"; interface Props { totalIndex: number; } export default function ResponseSettings({ totalIndex }: Props) { const { listQuestions } = questionStore(); return ( Настройки ответов { let clonContent = listQuestions[totalIndex].content; clonContent.largeCheck = e.target.checked; if (!e.target.checked) { clonContent.large = ""; } updateQuestionsList(totalIndex, { content: clonContent }); }} /> {listQuestions[totalIndex].content.largeCheck && ( { let clonContent = listQuestions[totalIndex].content; clonContent.large = target.value; updateQuestionsList(totalIndex, { content: clonContent }); }} /> )} { let clonContent = listQuestions[totalIndex].content; clonContent.multi = e.target.checked; updateQuestionsList(totalIndex, { content: clonContent }); }} /> { let clonContent = listQuestions[totalIndex].content; clonContent.own = e.target.checked; updateQuestionsList(totalIndex, { content: clonContent }); }} /> Настройки вопросов { updateQuestionsList(totalIndex, { required: !e.target.checked }); }} /> { let clonContent = listQuestions[totalIndex].content; clonContent.innerNameCheck = e.target.checked; if (!e.target.checked) { clonContent.innerName = ""; } updateQuestionsList(totalIndex, { content: clonContent }); }} />{" "} {listQuestions[totalIndex].content.innerNameCheck && ( { let clonContent = listQuestions[totalIndex].content; clonContent.innerName = target.value; updateQuestionsList(totalIndex, { content: clonContent }); }} /> )} ); }