import MiniButtonSetting from "@ui_kit/MiniButtonSetting"; import React from "react"; import SettingIcon from "@icons/questionsPage/settingIcon"; import Clue from "@icons/questionsPage/clue"; import Branching from "@icons/questionsPage/branching"; import {Box, IconButton, useTheme} from "@mui/material"; import HideIcon from "@icons/questionsPage/hideIcon"; import CopyIcon from "@icons/questionsPage/CopyIcon"; import DeleteIcon from "@icons/questionsPage/deleteIcon"; import ImgIcon from "@icons/questionsPage/imgIcon"; interface Props { switchState: string SSHC: (data:string) => void } export default function ButtonsOptionsAndPict ({SSHC, switchState}:Props) { 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, }} > Изображение ) }