import {useTranslation} from 'react-i18next'; import Box from '@mui/material/Box'; import Section from './Section'; import {EventEntity} from '../../generated/graphql'; import {useTheme} from '@mui/styles'; const DashboardEvents = ({ futureEvents = [], noDateEvents = [], pastEvents = [], }: { futureEvents: EventEntity[]; noDateEvents: EventEntity[]; pastEvents: EventEntity[]; }) => { const {t} = useTranslation(); const theme = useTheme(); return ( {futureEvents.length > 0 && (
)} {noDateEvents.length > 0 && (
)} {pastEvents.length > 0 && (
)} ); }; export default DashboardEvents;