diff options
Diffstat (limited to 'webapp/components/youtube_video/index.js')
-rw-r--r-- | webapp/components/youtube_video/index.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/webapp/components/youtube_video/index.js b/webapp/components/youtube_video/index.js new file mode 100644 index 000000000..592e52240 --- /dev/null +++ b/webapp/components/youtube_video/index.js @@ -0,0 +1,16 @@ +// Copyright (c) 2017 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 YoutubeVideo from './youtube_video.jsx'; + +function mapStateToProps(state, ownProps) { + return { + ...ownProps, + currentChannelId: getCurrentChannelId(state) + }; +} + +export default connect(mapStateToProps)(YoutubeVideo); |