import React from 'react' import { Link } from 'react-router-dom' import { apiUrl } from '../../utils' export default function ActivityCard (props) { const { activity, sports } = props return (
{' '}
Duration: {activity.duration}
{activity.map ? (
) : (
' - '
)}
{' '}
Distance: {activity.distance} km