text: import React, {Component} from 'react'
  import {connect} from 'react-redux'
  import Tweet from './Tweet'
  
  class Dashboard extends Component {
      render (){
          return(
              <div>
                  <h3 className = 'center'> Your Timeline </h3>
                  <ul className = 'dashboard-list'>
                      {this.props.tweetIds.map((id)=> (
                          <li key ={id}>
                              <Tweet id = {id}/>
                          </li>
                      ))}
                  </ul>
              </div>
          )
      }
  }
  
  function mapStateToProp ({ tweets}){
      return {
          tweetIds: Object.keys(tweets)
          .sort ((a,b) => tweets[b].timeStamp -tweets[a].timeStamp)
      }
  }
  
  export default connect(mapStateToProp)(Dashboard)