bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/video-dock/container.jsx

26 lines
613 B
React
Raw Normal View History

import React, { Component } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import VideoDock from './component';
2017-09-01 23:26:57 +08:00
import VideoService from './service';
class VideoDockContainer extends Component {
constructor(props) {
super(props);
}
render() {
return (
2017-09-01 23:26:57 +08:00
<VideoDock {...this.props}>
{this.props.children}
</VideoDock>
);
}
}
2017-09-01 23:26:57 +08:00
export default createContainer(() => ({
sendUserShareWebcam: VideoService.sendUserShareWebcam,
sendUserUnshareWebcam: VideoService.sendUserUnshareWebcam,
users: VideoService.getAllUsers(),
2017-09-01 23:26:57 +08:00
}), VideoDockContainer);