import {useTranslation} from 'react-i18next'; import Box from '@material-ui/core/Box'; import Section from './Section'; const DashboardEvents = ({ futureEvents = [], noDateEvents = [], pastEvents = [], }) => { const {t} = useTranslation(); return ( {futureEvents.length > 0 && (
)} {noDateEvents.length > 0 && (
)} {pastEvents.length > 0 && (
)} ); }; export default DashboardEvents;