17 lines
453 B
JavaScript
17 lines
453 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 {logout} from 'mattermost-redux/actions/users';
|
|
|
|
import Logout from './logout.js';
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({logout}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(null, mapDispatchToProps)(Logout);
|