import React from 'react';
import {
Divider, List, ListItem, ListItemIcon, ListItemText,
} from '@material-ui/core';
import TimelineIcon from '@material-ui/icons/Timeline';
import PauseCircleFilledIcon from '@material-ui/icons/PauseCircleFilled';
import PlayCircleFilledIcon from '@material-ui/icons/PlayCircleFilled';
import NotificationsActiveIcon from '@material-ui/icons/NotificationsActive';
import FormatListBulletedIcon from '@material-ui/icons/FormatListBulleted';
import TrendingUpIcon from '@material-ui/icons/TrendingUp';
import BarChartIcon from '@material-ui/icons/BarChart';
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;