import React from 'react'; import Grid from '@mui/material/Grid'; import Typography from '@mui/material/Typography'; import Box from '@mui/material/Box'; import EventCard from './EventCard'; import { EventEntity } from '../../generated/graphql'; interface Props { label: string; events: EventEntity[]; } const Section = (props: Props) => { const {label, events} = props; return ( {label} {events.map(event => ( ))} ); }; export default Section;