import { FC, useState } from "react"; import { Box, Typography } from "@mui/material"; import { People } from "@mui/icons-material"; import { SidebarModal } from "./SidebarModal"; import BackArrowIcon from "@icons/BackArrowIcon"; import { ChartLineUp } from "./icons/ChartLineUp"; import { ReturnTime } from "./icons/ReturnTime"; import { Question } from "./icons/Question"; import { Settings } from "./icons/Settings"; import { Pencil } from "./icons/Pencil"; import { ArrowDown } from "./icons/ArrowDown"; interface Iprops { open: boolean; changePage: (step: number) => void; } const quizSetupSteps = [ { sidebarIcon: }, { sidebarIcon: }, { sidebarIcon: , }, { sidebarIcon: , }, { sidebarIcon: }, ] as const; export const SidebarMobile: FC = ({ open, changePage }) => { const [openModal, setOpenModal] = useState(false); const onClose = () => { setOpenModal(false); }; return ( Название Название проекта {quizSetupSteps.map(({ sidebarIcon }, index) => ( changePage(index)} sx={{ cursor: "pointer", width: "44px", height: "44px", background: "#262835", display: "flex", justifyContent: "center", alignItems: "center", borderRadius: "8px", }} > {sidebarIcon} ))} setOpenModal(true)} sx={{ px: "10px", width: "70px", height: "44px", background: "#262835", display: "flex", justifyContent: "space-between", alignItems: "center", borderRadius: "8px", border: "1px solid #FFFFFF66", marginLeft: "28px", }} > ); };