function calculateRating (ratings) { const numberOfRatings = ratings.length const sumOfRatings = ratings.reduce( (accumulator, rating) => accumulator + rating.value, 0 ) return numberOfRatings ? sumOfRatings / numberOfRatings : '-' } const TrainingArchive = props => (

Training Archive

    {props.trainings.map(training => ( ))}
) const TrainingHint = props => (
{props.training.date}
{props.training.title}
) const Training = props => (

{props.title}

Content

    {props.content .sort(block => block.sequence) .map(block => ( ))}
) const Youtube = props => { const { link, rest } = props const [crap, src] = props.link.match(/\?v=(.*)/) return (