text: import React from 'react'
  
  import Emoji from '../components/Emoji'
  
  const Workout = ({ workout }) => {
    console.log(workout)
    return (
      <li className="card">
        <h3>{workout.name}</h3>
        <p>{new Date(workout.start_date).toLocaleDateString()}</p>
        {workout.kudos_count > 0 && (
          <p>
            {workout.kudos_count}x <Emoji symbol="👍" label="Thumbs up" />
          </p>
        )}
      </li>
    )
  }
  
  export default Workout
  