mattermost-mobile/share_extension/android/extension_post/index.js
enahum 926ffe96c5
Android share extension (#1352)
* Android share extension

* Feedback review

* Feedback review
2018-01-17 18:17:02 -03:00

24 lines
771 B
JavaScript

// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {connect} from 'react-redux';
import {getCurrentChannelId} from 'mattermost-redux/selectors/entities/channels';
import {getCurrentTeamId} from 'mattermost-redux/selectors/entities/teams';
import {getCurrentUserId} from 'mattermost-redux/selectors/entities/users';
import ExtensionPost from './extension_post';
function mapStateToProps(state) {
const {token, url} = state.entities.general.credentials;
return {
channelId: getCurrentChannelId(state),
currentUserId: getCurrentUserId(state),
teamId: getCurrentTeamId(state),
token,
url
};
}
export default connect(mapStateToProps)(ExtensionPost);