import MenuIcon from '@mui/icons-material/Menu'; import GitHubIcon from '@mui/icons-material/GitHub'; import AppBar from '@mui/material/AppBar'; import Box from '@mui/material/Box'; import CssBaseline from '@mui/material/CssBaseline'; import Divider from '@mui/material/Divider'; import Drawer from '@mui/material/Drawer'; import IconButton from '@mui/material/IconButton'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { VERSION } from '@react-page/editor'; import type { FC, PropsWithChildren } from 'react'; import * as React from 'react'; import Navigation from './Navigation'; const drawerWidth = 240; const PageLayout: FC = ({ children }) => { const [mobileOpen, setMobileOpen] = React.useState(false); const handleDrawerToggle = () => { setMobileOpen(!mobileOpen); }; const drawer = (
); return ( React Page {VERSION} {/* The implementation can be swapped with js to avoid SEO duplication of links. */} {drawer} {drawer} theme.palette.grey[100], }} > {children} ); }; export default PageLayout;