2017-09-20 11:12:10 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
|
|
|
import JoinVideoOptions from './component';
|
2017-12-09 00:38:51 +08:00
|
|
|
import VideoMenuService from './service';
|
2017-09-20 11:12:10 +08:00
|
|
|
|
|
|
|
const JoinVideoOptionsContainer = props => (<JoinVideoOptions {...props} />);
|
|
|
|
|
|
|
|
export default createContainer((params) => {
|
2017-12-09 00:38:51 +08:00
|
|
|
const isSharingVideo = VideoMenuService.isSharingVideo();
|
2017-09-20 11:12:10 +08:00
|
|
|
return {
|
|
|
|
isSharingVideo,
|
|
|
|
handleJoinVideo: params.handleJoinVideo,
|
|
|
|
handleCloseVideo: params.handleCloseVideo,
|
|
|
|
};
|
|
|
|
}, JoinVideoOptionsContainer);
|