2022-09-08 17:21:17 +00:00
|
|
|
import * as React from "react";
|
2023-03-12 02:32:56 +00:00
|
|
|
import {Outlet} from 'react-router-dom'
|
2023-03-12 00:16:15 +00:00
|
|
|
import {useTheme} from '@mui/material/styles';
|
|
|
|
import {Box} from "@mui/material";
|
|
|
|
import {ThemeProvider} from "@mui/material";
|
2022-09-09 13:54:49 +00:00
|
|
|
import CssBaseline from '@mui/material/CssBaseline';
|
2022-09-20 14:35:49 +00:00
|
|
|
import Menu from "./Menu";
|
|
|
|
import Header from "./Header";
|
|
|
|
import ModalAdmin from "./ModalAdmin";
|
|
|
|
import ModalUser from "./ModalUser";
|
2022-09-21 13:47:45 +00:00
|
|
|
import ModalEntities from "./ModalEntities";
|
2023-03-12 00:16:15 +00:00
|
|
|
import {useMatch} from "react-router-dom";
|
2022-09-14 10:24:02 +00:00
|
|
|
|
2023-03-12 02:32:56 +00:00
|
|
|
export default () => {
|
2023-03-12 00:16:15 +00:00
|
|
|
const theme = useTheme()
|
|
|
|
return (
|
|
|
|
<React.Fragment>
|
|
|
|
<Box sx={{
|
|
|
|
backgroundColor: theme.palette.primary.main,
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
height: "100%"
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Box sx={{
|
|
|
|
backgroundColor: theme.palette.content.main,
|
|
|
|
display: "flex",
|
|
|
|
width: "100%",
|
|
|
|
height: "100%"
|
|
|
|
}}>
|
2022-09-09 13:54:49 +00:00
|
|
|
|
2023-03-12 00:16:15 +00:00
|
|
|
<Menu/>
|
|
|
|
<Box sx={{
|
|
|
|
width: "100%",
|
|
|
|
display: "flex",
|
|
|
|
flexDirection: "column",
|
|
|
|
justifyContent: "space-between",
|
|
|
|
alignItems: "center"
|
|
|
|
}}>
|
2023-03-12 02:32:56 +00:00
|
|
|
<Box sx={{
|
|
|
|
width: "100%",
|
|
|
|
height: "100vh",
|
|
|
|
display: "flex",
|
|
|
|
flexDirection: "column",
|
|
|
|
alignItems: "center",
|
|
|
|
overflow: "auto",
|
|
|
|
overflowY: "auto",
|
|
|
|
padding: "160px 5px"
|
|
|
|
}}>
|
|
|
|
<Outlet/>
|
|
|
|
</Box>
|
2023-03-12 00:16:15 +00:00
|
|
|
</Box>
|
|
|
|
</Box>
|
2022-09-09 13:54:49 +00:00
|
|
|
</Box>
|
2022-09-14 10:24:02 +00:00
|
|
|
|
2023-03-12 00:16:15 +00:00
|
|
|
<ModalAdmin open={useMatch('/modalAdmin') !== null}/>
|
|
|
|
<ModalUser open={useMatch('/modalUser') !== null}/>
|
|
|
|
<ModalEntities open={useMatch('/modalEntities') !== null}/>
|
2023-03-12 02:32:56 +00:00
|
|
|
</React.Fragment>
|
|
|
|
)
|
2022-09-08 17:21:17 +00:00
|
|
|
}
|