bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/video-dock/video-menu/container.jsx
2017-09-20 00:12:10 -03:00

21 lines
651 B
JavaScript
Executable File

import React from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import Users from '/imports/api/2.0/users';
import Auth from '/imports/ui/services/auth/index';
import JoinVideoOptions from './component';
const JoinVideoOptionsContainer = props => (<JoinVideoOptions {...props} />);
export default createContainer((params) => {
const userId = Auth.userID;
const user = Users.findOne({ userId: userId });
const isSharingVideo = user.has_stream ? true : false;
return {
isSharingVideo,
handleJoinVideo: params.handleJoinVideo,
handleCloseVideo: params.handleCloseVideo,
};
}, JoinVideoOptionsContainer);