bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/deskshare/container.jsx
2016-05-13 09:39:10 -05:00

20 lines
532 B
JavaScript
Executable File

import React from 'react';
import {videoIsBroadcasting} from './DeskshareService';
import { createContainer } from 'meteor/react-meteor-data';
import DeskshareComponent from './DeskshareComponent.jsx';
class DeskshareContainer extends React.Component {
render() {
if (this.props.videoIsBroadcasting) {
return <DeskshareComponent />;
} else {
return null;
}
}
}
export default createContainer(() => {
const data = { videoIsBroadcasting: videoIsBroadcasting() };
return data;
}, DeskshareContainer);