bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/deskshare/container.jsx

20 lines
510 B
React
Raw Normal View History

2016-05-07 04:15:47 +08:00
import React from 'react';
import {videoIsBroadcasting} from './service';
2016-05-07 04:15:47 +08:00
import { createContainer } from 'meteor/react-meteor-data';
import DeskshareComponent from './component';
2016-05-07 04:15:47 +08:00
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);