import React from 'react';
import {
Divider, List, ListItemButton, ListItemIcon, ListItemText,
} from '@mui/material';
import TimelineIcon from '@mui/icons-material/Timeline';
import PauseCircleFilledIcon from '@mui/icons-material/PauseCircleFilled';
import PlayCircleFilledIcon from '@mui/icons-material/PlayCircleFilled';
import NotificationsActiveIcon from '@mui/icons-material/NotificationsActive';
import FormatListBulletedIcon from '@mui/icons-material/FormatListBulleted';
import TrendingUpIcon from '@mui/icons-material/TrendingUp';
import BarChartIcon from '@mui/icons-material/BarChart';
import RouteIcon from '@mui/icons-material/Route';
import EventRepeatIcon from '@mui/icons-material/EventRepeat';
import { Link, useLocation } from 'react-router-dom';
import { useTranslation } from '../../common/components/LocalizationProvider';
import { useAdministrator } from '../../common/util/permissions';
const MenuItem = ({
title, link, icon, selected,
}) => (
{icon}
);
const ReportsMenu = () => {
const t = useTranslation();
const location = useLocation();
const admin = useAdministrator();
return (
<>
}
selected={location.pathname === '/reports/route'}
/>
}
selected={location.pathname === '/reports/event'}
/>
}
selected={location.pathname === '/reports/trip'}
/>
}
selected={location.pathname === '/reports/stop'}
/>
}
selected={location.pathname === '/reports/summary'}
/>
}
selected={location.pathname === '/reports/chart'}
/>
}
/>
}
/>
{admin && (
}
selected={location.pathname === '/reports/statistics'}
/>
)}
>
);
};
export default ReportsMenu;