forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jsx
18 lines (14 loc) · 661 Bytes
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {connect} from 'react-redux';
import {getTeammateNameDisplaySetting} from 'mattermost-redux/selectors/entities/preferences';
import {getCurrentUserId, getUsersByUsername} from 'mattermost-redux/selectors/entities/users';
import AtMention from './at_mention.jsx';
function mapStateToProps(state) {
return {
currentUserId: getCurrentUserId(state),
teammateNameDisplay: getTeammateNameDisplaySetting(state),
usersByUsername: getUsersByUsername(state),
};
}
export default connect(mapStateToProps)(AtMention);