{"size": 498, "ext": "js", "max_stars_repo_path": "src/modules/conversations/components/list/connector.js", "max_stars_repo_name": "chebugram/chebugram", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/modules/conversations/components/list/connector.js", "max_issues_repo_name": "chebugram/chebugram", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/modules/conversations/components/list/connector.js", "max_forks_repo_name": "chebugram/chebugram", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.652173913, "max_line_length": 59, "alphanum_fraction": 0.7148594378}
import { connect } from 'react-redux';

import {
	selectConversationsByLastUpdate,
	selectConversationsCurrent,
} from '../../selectors';

import { setCurrentConversation } from '../../actions';

import List from './list';


export default connect((state) => {
 return {
 	currentConversationId: selectConversationsCurrent(state),
 	conversations: selectConversationsByLastUpdate(state),
 };
}, (dispatch) => ({
	onOpenConversation: (id) => {
		dispatch(setCurrentConversation(id));
	},
}))(List);
