import React from 'react' export default function UserStatistics (props) { const { user } = props return (
{user.nbActivities}
{`workout${user.nbActivities === 1 ? '' : 's'}`}
{Math.round(user.totalDistance * 100) / 100}
km
{user.totalDuration}
total duration
{user.nbSports}
{`sport${user.nbSports === 1 ? '' : 's'}`}
) }