20 lines
510 B
JavaScript
Executable File
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);
|