2019-08-09 11:14:35 +00:00
|
|
|
import Avatar from "@material-ui/core/Avatar";
|
2019-06-19 14:40:52 +00:00
|
|
|
import Chip from "@material-ui/core/Chip";
|
|
|
|
import ClickAwayListener from "@material-ui/core/ClickAwayListener";
|
|
|
|
import Grow from "@material-ui/core/Grow";
|
2019-08-09 11:14:35 +00:00
|
|
|
import Hidden from "@material-ui/core/Hidden";
|
2019-06-19 14:40:52 +00:00
|
|
|
import LinearProgress from "@material-ui/core/LinearProgress";
|
|
|
|
import MenuItem from "@material-ui/core/MenuItem";
|
|
|
|
import Menu from "@material-ui/core/MenuList";
|
|
|
|
import Paper from "@material-ui/core/Paper";
|
|
|
|
import Popper from "@material-ui/core/Popper";
|
|
|
|
import {
|
|
|
|
createStyles,
|
|
|
|
Theme,
|
|
|
|
withStyles,
|
|
|
|
WithStyles
|
|
|
|
} from "@material-ui/core/styles";
|
2019-08-09 11:14:35 +00:00
|
|
|
import classNames from "classnames";
|
2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-06-19 14:40:52 +00:00
|
|
|
import SVG from "react-inlinesvg";
|
2019-08-29 10:55:56 +00:00
|
|
|
import { FormattedMessage, useIntl } from "react-intl";
|
2019-06-19 14:40:52 +00:00
|
|
|
import { RouteComponentProps, withRouter } from "react-router";
|
|
|
|
|
2019-08-09 13:13:50 +00:00
|
|
|
import saleorDarkLogoSmall from "@assets/images/logo-dark-small.svg";
|
|
|
|
import saleorDarkLogo from "@assets/images/logo-dark.svg";
|
|
|
|
import menuArrowIcon from "@assets/images/menu-arrow-icon.svg";
|
2019-06-19 14:40:52 +00:00
|
|
|
import AppProgressProvider from "@saleor/components/AppProgress";
|
2019-08-09 11:14:35 +00:00
|
|
|
import useLocalStorage from "@saleor/hooks/useLocalStorage";
|
2019-06-19 14:40:52 +00:00
|
|
|
import useNavigator from "@saleor/hooks/useNavigator";
|
|
|
|
import useTheme from "@saleor/hooks/useTheme";
|
|
|
|
import useUser from "@saleor/hooks/useUser";
|
2019-08-09 11:14:35 +00:00
|
|
|
import ArrowDropdown from "@saleor/icons/ArrowDropdown";
|
2019-10-16 15:18:29 +00:00
|
|
|
import { staffMemberDetailsUrl } from "@saleor/staff/urls";
|
2019-06-19 14:40:52 +00:00
|
|
|
import Container from "../Container";
|
|
|
|
import AppActionContext from "./AppActionContext";
|
|
|
|
import AppHeaderContext from "./AppHeaderContext";
|
2019-08-09 11:14:35 +00:00
|
|
|
import { appLoaderHeight, drawerWidth, drawerWidthExpanded } from "./consts";
|
2019-06-19 14:40:52 +00:00
|
|
|
import MenuList from "./MenuList";
|
2019-08-29 10:55:56 +00:00
|
|
|
import createMenuStructure from "./menuStructure";
|
2019-06-19 14:40:52 +00:00
|
|
|
import ResponsiveDrawer from "./ResponsiveDrawer";
|
|
|
|
import ThemeSwitch from "./ThemeSwitch";
|
|
|
|
|
|
|
|
const styles = (theme: Theme) =>
|
|
|
|
createStyles({
|
|
|
|
appAction: {
|
2019-10-22 11:32:45 +00:00
|
|
|
[theme.breakpoints.down("sm")]: {
|
|
|
|
left: 0,
|
|
|
|
width: "100%"
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
bottom: 0,
|
|
|
|
gridColumn: 2,
|
2019-10-22 11:32:45 +00:00
|
|
|
left: 210,
|
|
|
|
position: "fixed",
|
|
|
|
width: "calc(100% - 210px)",
|
2019-09-16 02:14:57 +00:00
|
|
|
zIndex: 10
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
appLoader: {
|
|
|
|
height: appLoaderHeight,
|
|
|
|
zIndex: 1201
|
|
|
|
},
|
|
|
|
arrow: {
|
|
|
|
marginLeft: theme.spacing.unit * 2,
|
|
|
|
transition: theme.transitions.duration.standard + "ms"
|
|
|
|
},
|
|
|
|
content: {
|
2019-08-09 11:14:35 +00:00
|
|
|
[theme.breakpoints.down("sm")]: {
|
|
|
|
paddingLeft: 0
|
|
|
|
},
|
|
|
|
paddingLeft: drawerWidthExpanded,
|
|
|
|
transition: "padding-left 0.5s ease",
|
|
|
|
width: "100%"
|
|
|
|
},
|
|
|
|
contentToggle: {
|
|
|
|
[theme.breakpoints.down("sm")]: {
|
|
|
|
paddingLeft: 0
|
|
|
|
},
|
|
|
|
paddingLeft: drawerWidth
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
darkThemeSwitch: {
|
|
|
|
marginRight: theme.spacing.unit * 2
|
|
|
|
},
|
|
|
|
header: {
|
|
|
|
display: "flex",
|
|
|
|
height: 40,
|
|
|
|
marginBottom: theme.spacing.unit * 3,
|
|
|
|
marginTop: theme.spacing.unit * 2
|
|
|
|
},
|
|
|
|
hide: {
|
|
|
|
opacity: 0
|
|
|
|
},
|
2019-08-09 11:14:35 +00:00
|
|
|
isMenuSmall: {
|
|
|
|
"& path": {
|
|
|
|
fill: theme.palette.primary.main
|
|
|
|
},
|
|
|
|
"& span": {
|
|
|
|
margin: "0 8px"
|
|
|
|
},
|
|
|
|
"& svg": {
|
2019-09-26 12:40:32 +00:00
|
|
|
marginTop: 8,
|
2019-08-09 11:14:35 +00:00
|
|
|
transform: "rotate(180deg)"
|
|
|
|
},
|
|
|
|
"&:hover": {
|
|
|
|
background: "#E6F3F3"
|
|
|
|
},
|
|
|
|
background: theme.palette.background.paper,
|
|
|
|
border: `solid 1px #EAEAEA`,
|
|
|
|
borderRadius: "50%",
|
|
|
|
cursor: "pointer",
|
|
|
|
height: 32,
|
|
|
|
position: "absolute",
|
|
|
|
right: -16,
|
|
|
|
top: 65,
|
|
|
|
transition: `background ${theme.transitions.duration.shorter}ms`,
|
|
|
|
width: 32,
|
|
|
|
zIndex: 99
|
|
|
|
},
|
|
|
|
isMenuSmallDark: {
|
|
|
|
"&:hover": {
|
2019-08-29 10:55:56 +00:00
|
|
|
background: `linear-gradient(0deg, rgba(25, 195, 190, 0.1), rgba(25, 195, 190, 0.1)), ${theme.palette.background.paper}`
|
2019-08-09 11:14:35 +00:00
|
|
|
},
|
|
|
|
border: `solid 1px #252728`,
|
|
|
|
transition: `background ${theme.transitions.duration.shorter}ms`
|
|
|
|
},
|
|
|
|
isMenuSmallHide: {
|
|
|
|
"& svg": {
|
2019-09-26 12:40:32 +00:00
|
|
|
marginLeft: "3px",
|
2019-08-09 11:14:35 +00:00
|
|
|
transform: "rotate(0deg)"
|
|
|
|
}
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
logo: {
|
|
|
|
"& svg": {
|
2019-09-26 12:40:32 +00:00
|
|
|
left: "50%",
|
|
|
|
position: "absolute",
|
|
|
|
top: "50%",
|
|
|
|
transform: "translate(-50%,-50%)"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2019-08-09 11:14:35 +00:00
|
|
|
background: theme.palette.secondary.main,
|
2019-06-19 14:40:52 +00:00
|
|
|
display: "block",
|
2019-09-26 12:40:32 +00:00
|
|
|
height: 80,
|
|
|
|
position: "relative"
|
2019-08-09 11:14:35 +00:00
|
|
|
},
|
|
|
|
logoDark: {
|
|
|
|
"& path": {
|
|
|
|
fill: theme.palette.common.white
|
|
|
|
},
|
|
|
|
background: theme.palette.primary.main
|
|
|
|
},
|
|
|
|
logoSmall: {
|
|
|
|
"& svg": {
|
2019-09-26 12:40:32 +00:00
|
|
|
margin: 0,
|
2019-09-09 14:02:12 +00:00
|
|
|
padding: 0,
|
|
|
|
width: "80px"
|
2019-08-09 11:14:35 +00:00
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
menu: {
|
2019-08-09 11:14:35 +00:00
|
|
|
background: theme.palette.background.paper,
|
|
|
|
height: "100vh",
|
2019-09-26 12:40:32 +00:00
|
|
|
padding: "25px 20px"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
menuIcon: {
|
|
|
|
"& span": {
|
|
|
|
"&:nth-child(1)": {
|
|
|
|
top: 15
|
|
|
|
},
|
|
|
|
"&:nth-child(2), &:nth-child(3)": {
|
|
|
|
top: 20
|
|
|
|
},
|
|
|
|
"&:nth-child(4)": {
|
|
|
|
top: 25
|
|
|
|
},
|
|
|
|
background: theme.palette.secondary.light,
|
|
|
|
display: "block",
|
|
|
|
height: 1,
|
|
|
|
left: "20%",
|
|
|
|
opacity: 1,
|
|
|
|
position: "absolute",
|
|
|
|
transform: "rotate(0deg)",
|
|
|
|
transition: ".25s ease-in-out",
|
|
|
|
width: "60%"
|
|
|
|
},
|
2019-08-09 11:14:35 +00:00
|
|
|
[theme.breakpoints.up("md")]: {
|
|
|
|
display: "none"
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
background: theme.palette.background.paper,
|
|
|
|
borderRadius: "50%",
|
|
|
|
cursor: "pointer",
|
|
|
|
height: 42,
|
|
|
|
left: theme.spacing.unit,
|
|
|
|
marginRight: theme.spacing.unit * 2,
|
|
|
|
position: "relative",
|
|
|
|
transform: "rotate(0deg)",
|
2019-08-09 11:14:35 +00:00
|
|
|
transition: `${theme.transitions.duration.shorter}ms ease-in-out`,
|
2019-06-19 14:40:52 +00:00
|
|
|
width: 42
|
|
|
|
},
|
|
|
|
menuIconDark: {
|
|
|
|
"& span": {
|
|
|
|
background: theme.palette.common.white
|
|
|
|
}
|
|
|
|
},
|
|
|
|
menuIconOpen: {
|
|
|
|
"& span": {
|
|
|
|
"&:nth-child(1), &:nth-child(4)": {
|
|
|
|
left: "50%",
|
|
|
|
top: 20,
|
|
|
|
width: 0
|
|
|
|
},
|
|
|
|
"&:nth-child(2)": {
|
|
|
|
transform: "rotate(45deg)"
|
|
|
|
},
|
|
|
|
"&:nth-child(3)": {
|
|
|
|
transform: "rotate(-45deg)"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
left: 280,
|
|
|
|
position: "absolute",
|
|
|
|
zIndex: 1999
|
|
|
|
},
|
2019-08-09 11:14:35 +00:00
|
|
|
menuSmall: {
|
|
|
|
background: theme.palette.background.paper,
|
|
|
|
height: "100vh",
|
2019-09-02 10:04:39 +00:00
|
|
|
overflow: "hidden",
|
2019-08-09 11:14:35 +00:00
|
|
|
padding: 25
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
popover: {
|
|
|
|
zIndex: 1
|
|
|
|
},
|
|
|
|
root: {
|
2019-08-09 11:14:35 +00:00
|
|
|
width: `100%`
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
rotate: {
|
|
|
|
transform: "rotate(180deg)"
|
|
|
|
},
|
|
|
|
sideBar: {
|
|
|
|
[theme.breakpoints.down("sm")]: {
|
|
|
|
padding: 0
|
|
|
|
},
|
|
|
|
background: theme.palette.background.paper,
|
2019-08-09 11:14:35 +00:00
|
|
|
padding: `0 ${theme.spacing.unit * 4}px`
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
spacer: {
|
|
|
|
flex: 1
|
|
|
|
},
|
|
|
|
userBar: {
|
|
|
|
alignItems: "center",
|
|
|
|
display: "flex"
|
|
|
|
},
|
|
|
|
userChip: {
|
2019-08-09 11:14:35 +00:00
|
|
|
backgroundColor: theme.palette.background.paper,
|
|
|
|
color: theme.palette.text.primary
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
userMenuContainer: {
|
|
|
|
position: "relative"
|
|
|
|
},
|
|
|
|
userMenuItem: {
|
|
|
|
textAlign: "right"
|
|
|
|
},
|
|
|
|
view: {
|
|
|
|
backgroundColor: theme.palette.background.default,
|
|
|
|
flex: 1,
|
|
|
|
flexGrow: 1,
|
|
|
|
marginLeft: 0,
|
2019-10-22 11:32:45 +00:00
|
|
|
paddingBottom: theme.spacing.unit * 10
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
interface AppLayoutProps {
|
|
|
|
children: React.ReactNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
const AppLayout = withStyles(styles, {
|
|
|
|
name: "AppLayout"
|
|
|
|
})(
|
2019-08-09 11:14:35 +00:00
|
|
|
withRouter<AppLayoutProps & RouteComponentProps<any>, any>(
|
2019-06-19 14:40:52 +00:00
|
|
|
({
|
|
|
|
classes,
|
|
|
|
children,
|
|
|
|
location
|
|
|
|
}: AppLayoutProps &
|
|
|
|
WithStyles<typeof styles> &
|
|
|
|
RouteComponentProps<any>) => {
|
|
|
|
const { isDark, toggleTheme } = useTheme();
|
2019-08-09 11:14:35 +00:00
|
|
|
const [isMenuSmall, setMenuSmall] = useLocalStorage("isMenuSmall", false);
|
2019-06-19 14:40:52 +00:00
|
|
|
const [isDrawerOpened, setDrawerState] = React.useState(false);
|
|
|
|
const [isMenuOpened, setMenuState] = React.useState(false);
|
|
|
|
const appActionAnchor = React.useRef<HTMLDivElement>();
|
|
|
|
const appHeaderAnchor = React.useRef<HTMLDivElement>();
|
|
|
|
const anchor = React.useRef<HTMLDivElement>();
|
|
|
|
const { logout, user } = useUser();
|
|
|
|
const navigate = useNavigator();
|
2019-08-29 10:55:56 +00:00
|
|
|
const intl = useIntl();
|
|
|
|
|
|
|
|
const menuStructure = createMenuStructure(intl);
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
const handleLogout = () => {
|
2019-10-16 15:18:29 +00:00
|
|
|
setMenuState(false);
|
2019-06-19 14:40:52 +00:00
|
|
|
logout();
|
|
|
|
};
|
|
|
|
|
2019-10-16 15:18:29 +00:00
|
|
|
const handleViewerProfile = () => {
|
|
|
|
setMenuState(false);
|
|
|
|
navigate(staffMemberDetailsUrl(user.id));
|
|
|
|
};
|
|
|
|
|
2019-06-19 14:40:52 +00:00
|
|
|
const handleMenuItemClick = (
|
|
|
|
url: string,
|
|
|
|
event: React.MouseEvent<any>
|
|
|
|
) => {
|
|
|
|
event.stopPropagation();
|
|
|
|
event.preventDefault();
|
|
|
|
setDrawerState(false);
|
|
|
|
navigate(url);
|
|
|
|
};
|
|
|
|
|
2019-08-09 11:14:35 +00:00
|
|
|
const handleIsMenuSmall = () => {
|
|
|
|
setMenuSmall(!isMenuSmall);
|
|
|
|
};
|
|
|
|
|
2019-06-19 14:40:52 +00:00
|
|
|
return (
|
|
|
|
<AppProgressProvider>
|
|
|
|
{({ isProgress }) => (
|
|
|
|
<AppHeaderContext.Provider value={appHeaderAnchor}>
|
|
|
|
<AppActionContext.Provider value={appActionAnchor}>
|
|
|
|
<LinearProgress
|
|
|
|
className={classNames(classes.appLoader, {
|
|
|
|
[classes.hide]: !isProgress
|
|
|
|
})}
|
|
|
|
color="primary"
|
|
|
|
/>
|
|
|
|
<div className={classes.root}>
|
|
|
|
<div className={classes.sideBar}>
|
|
|
|
<ResponsiveDrawer
|
|
|
|
onClose={() => setDrawerState(false)}
|
|
|
|
open={isDrawerOpened}
|
2019-08-09 11:14:35 +00:00
|
|
|
small={!isMenuSmall}
|
2019-06-19 14:40:52 +00:00
|
|
|
>
|
2019-08-09 11:14:35 +00:00
|
|
|
<div
|
|
|
|
className={classNames(classes.logo, {
|
|
|
|
[classes.logoSmall]: isMenuSmall,
|
|
|
|
[classes.logoDark]: isDark
|
|
|
|
})}
|
|
|
|
>
|
|
|
|
<SVG
|
|
|
|
src={
|
|
|
|
isMenuSmall ? saleorDarkLogoSmall : saleorDarkLogo
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<Hidden smDown>
|
|
|
|
<div
|
|
|
|
className={classNames(classes.isMenuSmall, {
|
|
|
|
[classes.isMenuSmallHide]: isMenuSmall,
|
|
|
|
[classes.isMenuSmallDark]: isDark
|
|
|
|
})}
|
|
|
|
onClick={handleIsMenuSmall}
|
|
|
|
>
|
|
|
|
<SVG src={menuArrowIcon} />
|
|
|
|
</div>
|
|
|
|
</Hidden>
|
2019-06-19 14:40:52 +00:00
|
|
|
<MenuList
|
2019-08-09 11:14:35 +00:00
|
|
|
className={
|
|
|
|
isMenuSmall ? classes.menuSmall : classes.menu
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
menuItems={menuStructure}
|
2019-08-09 11:14:35 +00:00
|
|
|
isMenuSmall={!isMenuSmall}
|
2019-06-19 14:40:52 +00:00
|
|
|
location={location.pathname}
|
|
|
|
user={user}
|
|
|
|
renderConfigure={true}
|
|
|
|
onMenuItemClick={handleMenuItemClick}
|
|
|
|
/>
|
|
|
|
</ResponsiveDrawer>
|
|
|
|
</div>
|
2019-08-09 11:14:35 +00:00
|
|
|
<div
|
|
|
|
className={classNames(classes.content, {
|
|
|
|
[classes.contentToggle]: isMenuSmall
|
|
|
|
})}
|
|
|
|
>
|
2019-06-19 14:40:52 +00:00
|
|
|
<div>
|
|
|
|
<Container>
|
|
|
|
<div className={classes.header}>
|
|
|
|
<div
|
|
|
|
className={classNames(classes.menuIcon, {
|
|
|
|
[classes.menuIconOpen]: isDrawerOpened,
|
|
|
|
[classes.menuIconDark]: isDark
|
|
|
|
})}
|
|
|
|
onClick={() => setDrawerState(!isDrawerOpened)}
|
|
|
|
>
|
|
|
|
<span />
|
|
|
|
<span />
|
|
|
|
<span />
|
|
|
|
<span />
|
|
|
|
</div>
|
|
|
|
<div ref={appHeaderAnchor} />
|
|
|
|
<div className={classes.spacer} />
|
|
|
|
<div className={classes.userBar}>
|
|
|
|
<ThemeSwitch
|
|
|
|
className={classes.darkThemeSwitch}
|
|
|
|
checked={isDark}
|
|
|
|
onClick={toggleTheme}
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
className={classes.userMenuContainer}
|
|
|
|
ref={anchor}
|
|
|
|
>
|
|
|
|
<Chip
|
2019-08-09 11:14:35 +00:00
|
|
|
avatar={
|
|
|
|
user.avatar && (
|
|
|
|
<Avatar alt="user" src={user.avatar.url} />
|
|
|
|
)
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
className={classes.userChip}
|
|
|
|
label={
|
|
|
|
<>
|
|
|
|
{user.email}
|
|
|
|
<ArrowDropdown
|
|
|
|
className={classNames(classes.arrow, {
|
|
|
|
[classes.rotate]: isMenuOpened
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
</>
|
|
|
|
}
|
|
|
|
onClick={() => setMenuState(!isMenuOpened)}
|
|
|
|
/>
|
|
|
|
<Popper
|
|
|
|
className={classes.popover}
|
|
|
|
open={isMenuOpened}
|
|
|
|
anchorEl={anchor.current}
|
|
|
|
transition
|
|
|
|
disablePortal
|
|
|
|
placement="bottom-end"
|
|
|
|
>
|
|
|
|
{({ TransitionProps, placement }) => (
|
|
|
|
<Grow
|
|
|
|
{...TransitionProps}
|
|
|
|
style={{
|
|
|
|
transformOrigin:
|
|
|
|
placement === "bottom"
|
|
|
|
? "right top"
|
|
|
|
: "right bottom"
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Paper>
|
|
|
|
<ClickAwayListener
|
|
|
|
onClickAway={() => setMenuState(false)}
|
|
|
|
mouseEvent="onClick"
|
|
|
|
>
|
|
|
|
<Menu>
|
2019-10-16 15:18:29 +00:00
|
|
|
<MenuItem
|
|
|
|
className={classes.userMenuItem}
|
|
|
|
onClick={handleViewerProfile}
|
|
|
|
>
|
|
|
|
<FormattedMessage
|
|
|
|
defaultMessage="Account Settings"
|
|
|
|
description="button"
|
|
|
|
/>
|
|
|
|
</MenuItem>
|
2019-06-19 14:40:52 +00:00
|
|
|
<MenuItem
|
|
|
|
className={classes.userMenuItem}
|
|
|
|
onClick={handleLogout}
|
|
|
|
>
|
2019-08-26 21:54:03 +00:00
|
|
|
<FormattedMessage
|
|
|
|
defaultMessage="Log out"
|
|
|
|
description="button"
|
|
|
|
/>
|
2019-06-19 14:40:52 +00:00
|
|
|
</MenuItem>
|
|
|
|
</Menu>
|
|
|
|
</ClickAwayListener>
|
|
|
|
</Paper>
|
|
|
|
</Grow>
|
|
|
|
)}
|
|
|
|
</Popper>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Container>
|
|
|
|
</div>
|
|
|
|
<main className={classes.view}>{children}</main>
|
|
|
|
<div className={classes.appAction} ref={appActionAnchor} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</AppActionContext.Provider>
|
|
|
|
</AppHeaderContext.Provider>
|
|
|
|
)}
|
|
|
|
</AppProgressProvider>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
export default AppLayout;
|