27 lines
741 B
JavaScript
27 lines
741 B
JavaScript
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {bindActionCreators} from 'redux';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {goBack, goToFlaggedPosts, goToRecentMentions} from 'app/actions/navigation';
|
|
import {logout} from 'service/actions/users';
|
|
|
|
import RightSidebarMenu from './right_sidebar_menu';
|
|
|
|
function mapStateToProps(state, ownProps) {
|
|
return ownProps;
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
goBack,
|
|
goToFlaggedPosts,
|
|
goToRecentMentions,
|
|
logout
|
|
}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(RightSidebarMenu);
|