summaryrefslogtreecommitdiffstats
path: root/webapp/components/at_mention/index.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/at_mention/index.jsx')
-rw-r--r--webapp/components/at_mention/index.jsx27
1 files changed, 27 insertions, 0 deletions
diff --git a/webapp/components/at_mention/index.jsx b/webapp/components/at_mention/index.jsx
new file mode 100644
index 000000000..c733158c6
--- /dev/null
+++ b/webapp/components/at_mention/index.jsx
@@ -0,0 +1,27 @@
+// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import {connect} from 'react-redux';
+
+import {getUsersByUsername} from 'mattermost-redux/selectors/entities/users';
+
+import {searchForTerm} from 'actions/post_actions.jsx';
+
+import AtMention from './at_mention.jsx';
+
+function mapStateToProps(state, ownProps) {
+ return {
+ ...ownProps,
+ usersByUsername: getUsersByUsername(state)
+ };
+}
+
+function mapDispatchToProps() {
+ return {
+ actions: {
+ searchForTerm
+ }
+ };
+}
+
+export default connect(mapStateToProps, mapDispatchToProps)(AtMention);