import React from 'react'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import {useTranslation} from 'react-i18next'; export const EventCard = ({event}) => { const {t} = useTranslation(); return ( {event.name} {t('event.fields.starts_on')} {event.date || t('event.fields.empty')} {t('event.fields.address')} {event.address || t('event.fields.empty')} ); };