import MiniButtonSetting from "@ui_kit/MiniButtonSetting"; import React from "react"; import SettingIcon from "../../assets/icons/questionsPage/settingIcon"; import Clue from "../../assets/icons/questionsPage/clue"; import Branching from "../../assets/icons/questionsPage/branching"; import { Box, IconButton, useTheme } from "@mui/material"; import HideIcon from "../../assets/icons/questionsPage/hideIcon"; import CopyIcon from "../../assets/icons/questionsPage/CopyIcon"; import DeleteIcon from "../../assets/icons/questionsPage/deleteIcon"; import ImgIcon from "../../assets/icons/questionsPage/imgIcon"; import {useParams} from "react-router-dom"; import {questionStore} from "@root/questions"; interface Props { switchState: string; SSHC: (data: string) => void; totalIndex: number } export default function ButtonsOptionsAndPict({ SSHC, switchState, totalIndex }: Props) { const params = Number(useParams().quizId); const {listQuestions, updateQuestionsList, createQuestion, removeQuestion} = questionStore() const theme = useTheme(); return ( { SSHC("setting"); }} sx={{ backgroundColor: switchState === "setting" ? theme.palette.brightPurple.main : "transparent", color: switchState === "setting" ? "#ffffff" : theme.palette.grey3.main, }} > Настройки { SSHC("help"); }} sx={{ backgroundColor: switchState === "help" ? theme.palette.brightPurple.main : "transparent", color: switchState === "help" ? "#ffffff" : theme.palette.grey3.main, }} > Помощь { SSHC("branching"); }} sx={{ backgroundColor: switchState === "branching" ? theme.palette.brightPurple.main : "transparent", color: switchState === "branching" ? "#ffffff" : theme.palette.grey3.main, }} > Ветвление { SSHC("image"); }} sx={{ backgroundColor: switchState === "image" ? theme.palette.brightPurple.main : "transparent", color: switchState === "image" ? "#ffffff" : theme.palette.grey3.main, }} > Изображение removeQuestion(params, totalIndex)}> ); }