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

16 lines
517 B
React
Raw Normal View History

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