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