import React from 'react' export default function ActivityWeather(props) { const { activity } = props return (
{activity.weather_start && activity.weather_end && (
Start
{`activity
End
{`activity
Temperatures {Number(activity.weather_start.temperature).toFixed(1)}°C {Number(activity.weather_end.temperature).toFixed(1)}°C
Temperatures {Number(activity.weather_start.humidity * 100).toFixed(1)}% {Number(activity.weather_end.humidity * 100).toFixed(1)}%
Temperatures {Number(activity.weather_start.wind).toFixed(1)}m/s {Number(activity.weather_end.wind).toFixed(1)}m/s
)}
) }