summaryrefslogtreecommitdiffstats
path: root/webapp/components/announcement_bar/index.js
blob: 8fe4f56b43aca124a8c726e2818fdd023718ce76 (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 {getCurrentUserId} from 'mattermost-redux/selectors/entities/users';

import AnnouncementBar from './announcement_bar.jsx';

function mapStateToProps(state, ownProps) {
    return {
        ...ownProps,
        isLoggedIn: Boolean(getCurrentUserId(state))
    };
}

export default connect(mapStateToProps)(AnnouncementBar);