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

27 lines
647 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';
import Users from '/imports/api/users';
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: Users.find().fetch(),
}), VideoDockContainer);