summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment/index.js
blob: 50017461a0d47846bba7728ec53c0cfe732986d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

import {connect} from 'react-redux';

import CreateComment from './create_comment.jsx';

function mapStateToProps(state, ownProps) {
    const err = state.requests.posts.createPost.error || {};
    return {
        ...ownProps,
        createPostErrorId: err.server_error_id
    };
}

export default connect(mapStateToProps)(CreateComment);