import MiniButtonSetting from "@ui_kit/MiniButtonSetting"; import React from "react"; import SettingIcon from "../../components/icons/questionsPage/settingIcon"; import Clue from "../../components/icons/questionsPage/clue"; import Branching from "../../components/icons/questionsPage/branching"; import ImgIcon from "../../components/icons/questionsPage/imgIcon"; import {Box, IconButton, useTheme} from "@mui/material"; import HideIcon from "../../components/icons/questionsPage/hideIcon"; import CopyIcon from "../../components/icons/questionsPage/CopyIcon"; import DeleteIcon from "../../components/icons/questionsPage/deleteIcon"; export default function ButtonsOptions () { // const buttonSetting: {icon: JSX.Element; title: string; value: string} [] =[ // {icon: , title: 'Настройки', value: 'setting'}, // {icon: , title: 'Подсказка', value: 'help'}, // {icon: , title: 'Ветвление', value: 'branching'}, // {icon: , title: 'Изображение', value: 'image'}, // ] const [switchState, setSwitchState] = React.useState('setting'); const theme = useTheme(); return ( {/*{buttonSetting.map( (e,i) => (*/} {/* {setSwitchState({e.value})}}*/} {/* sx={{backgroundColor: switchState === {e.value} ? theme.palette.brightPurple.main : 'transparent',*/} {/* color: switchState === {e.value} ? '#ffffff' : theme.palette.grey3.main,*/} {/* }}*/} {/* >*/} {/* {e.icon}*/} {/* {e.title}*/} {/* */} {/*))}*/} {setSwitchState('setting')}} sx={{backgroundColor: switchState === 'setting' ? theme.palette.brightPurple.main : 'transparent', color: switchState === 'setting' ? '#ffffff' : theme.palette.grey3.main, }} > Настройки {setSwitchState('help')}} sx={{backgroundColor: switchState === 'help' ? theme.palette.brightPurple.main : 'transparent', color: switchState === 'help' ? '#ffffff' : theme.palette.grey3.main, }} > Подсказка {setSwitchState('branching')}} sx={{backgroundColor: switchState === 'branching' ? theme.palette.brightPurple.main : 'transparent', color: switchState === 'branching' ? '#ffffff' : theme.palette.grey3.main, }} > Ветвление {setSwitchState('image')}} sx={{backgroundColor: switchState === 'image' ? theme.palette.brightPurple.main : 'transparent', color: switchState === 'image' ? '#ffffff' : theme.palette.grey3.main, }} > Изображение ) }