import React, { useState } from 'react';
import {
AppBar,
Breadcrumbs,
Divider,
Drawer,
IconButton,
Toolbar,
Typography,
useMediaQuery,
useTheme,
} from '@mui/material';
import makeStyles from '@mui/styles/makeStyles';
import ArrowBackIcon from '@mui/icons-material/ArrowBack';
import MenuIcon from '@mui/icons-material/Menu';
import { useNavigate } from 'react-router-dom';
import { useTranslation } from './LocalizationProvider';
const useStyles = makeStyles((theme) => ({
desktopRoot: {
height: '100%',
display: 'flex',
},
mobileRoot: {
height: '100%',
display: 'flex',
flexDirection: 'column',
},
desktopDrawer: {
width: theme.dimensions.drawerWidthDesktop,
},
mobileDrawer: {
width: theme.dimensions.drawerWidthTablet,
},
mobileToolbar: {
zIndex: 1,
},
content: {
flexGrow: 1,
alignItems: 'stretch',
display: 'flex',
flexDirection: 'column',
overflowY: 'auto',
},
}));
const PageTitle = ({ breadcrumbs }) => {
const theme = useTheme();
const t = useTranslation();
const desktop = useMediaQuery(theme.breakpoints.up('md'));
if (desktop) {
return (