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

import {connect} from 'react-redux';
import SidebarRight from './sidebar_right.jsx';

function mapStateToProps(state, ownProps) {
    return {
        ...ownProps,
        postRightVisible: Boolean(state.views.rhs.selectedPostId),
        fromSearch: state.views.rhs.fromSearch,
        fromFlaggedPosts: state.views.rhs.fromFlaggedPosts,
        fromPinnedPosts: state.views.rhs.fromPinnedPosts
    };
}

export default connect(mapStateToProps)(SidebarRight);