{"size": 1025, "ext": "js", "max_stars_repo_path": "src/client/containers/ConversationsListContainer/index.js", "max_stars_repo_name": "cheung31/iMsg", "max_stars_repo_stars_event_min_datetime": "2016-04-17T22:16:47.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-29T21:35:24.000Z", "max_issues_repo_path": "src/client/containers/ConversationsListContainer/index.js", "max_issues_repo_name": "cheung31/iMsg", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/client/containers/ConversationsListContainer/index.js", "max_forks_repo_name": "cheung31/iMsg", "max_forks_repo_forks_event_min_datetime": "2016-11-22T12:33:52.000Z", "max_forks_repo_forks_event_max_datetime": "2016-11-22T12:33:52.000Z"}
{"max_stars_count": 13, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 29.2857142857, "max_line_length": 98, "alphanum_fraction": 0.7424390244}

import React, { Component } from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'

import ConversationsList from '../../components/ConversationsList'
import style from './style.css'

class ConversationsListContainer extends Component {
  render() {
    const { newConversation, selectedConversation, conversations, conversationsById } = this.props
      return (
        <ConversationsList
            newConversation={newConversation}
            selectedConversation={selectedConversation}
            conversations={conversations}
            conversationsById={conversationsById} />
      )
  }
}

function mapStateToProps(state) {
  var conversationsState = state.conversations
  return {
    newConversation: state.newConversation,
    selectedConversation: state.selectedConversation,
    conversations: conversationsState.conversations,
    conversationsById: conversationsState.conversationsById
  }
}

export default connect(
  mapStateToProps
)(ConversationsListContainer)
