import React from 'react'; import { Typography } from '@material-ui/core'; import { withStyles } from '@material-ui/core/styles'; import styles from '../styles'; import Event from '../Event'; class Future extends React.Component { render() { const { classes } = this.props; const { Events, AKey } = this.props; const events = Events.map((event, index) => ( )); return (
Future events {events}
); } } export default withStyles(styles)(Future);