import { Box, Typography, useMediaQuery, useTheme } from "@mui/material"; import { updateQuestion } from "@root/questions/actions"; import CustomCheckbox from "@ui_kit/CustomCheckbox"; import type { QuizQuestionEmoji } from "../../../model/questionTypes/emoji"; type SettingEmojiProps = { question: QuizQuestionEmoji; }; export default function SettingEmoji({ question }: SettingEmojiProps) { const theme = useTheme(); const isWrappColumn = useMediaQuery(theme.breakpoints.down(980)); const isFigmaTablte = useMediaQuery(theme.breakpoints.down(990)); const isMobile = useMediaQuery(theme.breakpoints.down(790)); return ( {/* Настройки ответов updateQuestion(question.id, question => { if (question.type !== "emoji") return; question.content.multi = target.checked; })} /> updateQuestion(question.id, question => { if (question.type !== "emoji") return; question.content.own = target.checked; })} /> */} Настройки вопросов updateQuestion(question.id, (question) => { if (question.type !== "emoji") return; question.content.required = !target.checked; }) } /> {/**/} {/* updateQuestion(question.id, question => {*/} {/* question.content.innerNameCheck = target.checked;*/} {/* question.content.innerName = target.checked ? question.content.innerName : "";*/} {/* })}*/} {/* />*/} {/* */} {/* */} {/* */} {/* */} {/* */} {/**/} {/*{question.content.innerNameCheck && (*/} {/* setInnerName(target.value)}*/} {/* />*/} {/*)}*/} ); }