// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import * as teamActions from 'service/actions/teams'; import {goToChannelView} from 'app/actions/navigation'; import SelectTeamView from './select_team.js'; function mapStateToProps(state) { return { config: state.entities.general.config, teamsRequest: state.requests.teams.allTeams, teams: state.entities.teams.teams, myMembers: state.entities.teams.myMembers }; } function mapDispatchToProps(dispatch) { return { actions: bindActionCreators({ ...teamActions, goToChannelView }, dispatch) }; } export default connect(mapStateToProps, mapDispatchToProps)(SelectTeamView);