22 lines
688 B
JavaScript
22 lines
688 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {connect} from 'react-redux';
|
|
|
|
import {
|
|
getExtensionSortedDirectChannels,
|
|
getExtensionSortedPrivateChannels,
|
|
getExtensionSortedPublicChannels,
|
|
} from 'share_extension/common/selectors';
|
|
|
|
import ExtensionChannels from './extension_channels';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
publicChannels: getExtensionSortedPublicChannels(state),
|
|
privateChannels: getExtensionSortedPrivateChannels(state),
|
|
directChannels: getExtensionSortedDirectChannels(state),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(ExtensionChannels);
|