import { useParams } from "react-router-dom"; import { Box, Typography } from "@mui/material"; import CustomCheckbox from "@ui_kit/CustomCheckbox"; import CustomTextField from "@ui_kit/CustomTextField"; import { questionStore, updateQuestionsList } from "@root/questions"; import InfoIcon from "../../../assets/icons/InfoIcon"; type SettingDropDownProps = { totalIndex: number; }; export default function SettingDropDown({ totalIndex }: SettingDropDownProps) { const quizId = Number(useParams().quizId); const { listQuestions } = questionStore(); return ( <> Настройки ответов Текст в выпадающем списке { const clonContent = listQuestions[quizId][totalIndex].content; clonContent.default = target.value; updateQuestionsList(quizId, totalIndex, { content: clonContent }); }} /> Настройки вопросов ); }