summaryrefslogtreecommitdiffstats
path: root/webapp/components/youtube_video/index.js
blob: 592e5224024b8988d939a7df617d1ff4bdef0340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);