import React from 'react' import { Link } from 'react-router-dom' export default function ActivityCard (props) { const { activity, sports } = props return (
{sports.filter(sport => sport.id === activity.sport_id) .map(sport => sport.label)} -{' '} {activity.activity_date}