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

* Feedback review

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

16 lines
450 B
JavaScript

// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {connect} from 'react-redux';
import {getChannel} from 'mattermost-redux/selectors/entities/channels';
import ChannelButton from './channel_button';
function mapStateToProps(state, ownProps) {
return {
channel: getChannel(state, ownProps.channelId)
};
}
export default connect(mapStateToProps)(ChannelButton);