import { useState } from "react"; import * as React from "react"; import {} from "react-router-dom"; import { useLocation, Link } from "react-router-dom"; import { useMediaQuery, useTheme, Button, Dialog, ListItem, AppBar, List, Toolbar, IconButton, Box, Slide, } from "@mui/material"; import { TransitionProps } from "@mui/material/transitions"; import SectionStyled from "./SectionStyled"; import CloseIcon from "./images/icons/CloseIcon"; import MenuIcon from "./images/icons/MenuIcon"; import Logotip from "./images/icons/QuizLogo"; // import logotipBlack from "../Icons/Logo/black_logo_PenaHab.svg"; // import logotipBlackMobile from "../Icons/Logo/black_logo_PenaHab_mobile.svg"; // const buttonMenu: { path: string; title: string }[] = [ // { path: "/", title: "Меню 1" }, // { path: "/", title: "Меню 2" }, // { path: "/", title: "Меню 3" }, // { path: "/", title: "Меню 4" }, // { path: "/", title: "Меню 5" }, // { path: "/", title: "Меню 6" }, // { path: "/", title: "Меню 7" }, // { path: "/", title: "Меню 8" }, // ]; interface Props { theme?: "dark" | "light"; bgColor?: string; } const Transition = React.forwardRef(function Transition( props: TransitionProps & { children: React.ReactElement; }, ref: React.Ref ) { return ; }); const height = "80px"; export default function FullScreenDialog({ theme = "dark", bgColor = "#F2F3F7", }: Props) { const [open, setOpen] = useState(false); const location = useLocation(); const themeMUI = useTheme(); const isMobile = useMediaQuery(themeMUI.breakpoints.down("md")); const handleClickOpen = () => { setOpen(true); }; const handleClose = () => { setOpen(false); }; return ( <> {!isMobile && ( )} {isMobile && ( )} {/**/} {/* {buttonMenu.map(({ path, title }) => (*/} {/* */} {/* */} {/* {title}*/} {/* */} {/* */} {/* ))}*/} {/**/} {isMobile ? ( ) : ( )} ); }