2016-05-07 04:15:47 +08:00
|
|
|
import React from 'react';
|
2016-05-13 22:47:24 +08:00
|
|
|
import {videoIsBroadcasting} from './service';
|
2016-05-07 04:15:47 +08:00
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
2016-05-20 21:46:30 +08:00
|
|
|
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);
|