summaryrefslogtreecommitdiffstats
path: root/webapp/components/dot_menu/index.js
blob: eaa1e8d2cc632263fa0bf50377f014fffd328fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {flagPost, unflagPost, pinPost, unpinPost} from 'mattermost-redux/actions/posts';

import DotMenu from './dot_menu.jsx';

function mapStateToProps(state, ownProps) {
    return ownProps;
}

function mapDispatchToProps(dispatch) {
    return {
        actions: bindActionCreators({
            flagPost,
            unflagPost,
            pinPost,
            unpinPost
        }, dispatch)
    };
}

export default connect(mapStateToProps, mapDispatchToProps)(DotMenu);