2018-01-08 12:44:42 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2016-05-20 21:44:27 +08:00
|
|
|
import VideoDock from './component';
|
2017-09-01 23:26:57 +08:00
|
|
|
import VideoService from './service';
|
2016-05-04 04:40:46 +08:00
|
|
|
|
2018-01-08 12:44:42 +08:00
|
|
|
const VideoDockContainer = ({ children, ...props }) => (
|
|
|
|
<VideoDock {...props}>
|
|
|
|
{children}
|
|
|
|
</VideoDock>
|
|
|
|
);
|
2016-05-04 04:40:46 +08:00
|
|
|
|
2018-01-08 12:44:42 +08:00
|
|
|
export default withTracker(() => ({
|
2017-09-01 23:26:57 +08:00
|
|
|
sendUserShareWebcam: VideoService.sendUserShareWebcam,
|
|
|
|
sendUserUnshareWebcam: VideoService.sendUserUnshareWebcam,
|
2017-12-09 00:38:51 +08:00
|
|
|
users: VideoService.getAllUsers(),
|
2018-01-13 02:39:16 +08:00
|
|
|
userId: VideoService.userId,
|
2018-01-08 12:44:42 +08:00
|
|
|
}))(VideoDockContainer);
|