import TrainingHint from './trainingHint'

const TrainingArchive = props => (
  <div>
    <h2>Training Archive</h2>
    <ol>
      {props.trainings.map(training => (
        <TrainingHint key={training.id} training={training} />
      ))}
    </ol>
  </div>
)

export default TrainingArchive
