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

16 lines
517 B
JavaScript
Executable File

import React from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import JoinVideoOptions from './component';
import VideoMenuService from './service';
const JoinVideoOptionsContainer = props => (<JoinVideoOptions {...props} />);
export default createContainer((params) => {
const isSharingVideo = VideoMenuService.isSharingVideo();
return {
isSharingVideo,
handleJoinVideo: params.handleJoinVideo,
handleCloseVideo: params.handleCloseVideo,
};
}, JoinVideoOptionsContainer);