text: import React from 'react';
  import { connect } from 'react-redux';
  
  const SongDetail = ({ song }) => {
    if(!song) {
      return(
        <div>
          Please select a song
        </div>
      );
    }
    return(
      <div className="column eight wide">
        <h3> details for: </h3>
        <p>
          Title: {song.title} <br />
          Duration: {song.duration}
        </p>
      </div>
    )
  }
  
  const mapStateToProps = (state) => {
    return {
      song: state.selectedSong
    }
  }
  export default connect(mapStateToProps)(SongDetail);
  