import { useParams } from "react-router-dom"; import { Box, Typography } from "@mui/material"; import CustomCheckbox from "@ui_kit/CustomCheckbox"; import InfoIcon from "../../../assets/icons/InfoIcon"; import { questionStore, updateQuestionsList } from "@root/questions"; type SettingSliderProps = { totalIndex: number; }; export default function SettingSlider({ totalIndex }: SettingSliderProps) { const quizId = Number(useParams().quizId); const { listQuestions } = questionStore(); return ( Настройки ползунка { let clonContent = listQuestions[quizId][totalIndex].content; clonContent.chooseRange = e.target.checked; updateQuestionsList(quizId, totalIndex, { content: clonContent }); }} /> Настройки вопросов ); }