bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/deskshare/container.jsx
2016-05-20 10:46:30 -03:00

20 lines
510 B
JavaScript
Executable File

import React from 'react';
import {videoIsBroadcasting} from './service';
import { createContainer } from 'meteor/react-meteor-data';
import DeskshareComponent from './component';
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);