bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/container.jsx
2017-02-23 10:20:45 -08:00

25 lines
685 B
JavaScript
Executable File

import React, { Component, PropTypes } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import PresentationAreaService from './service';
import PresentationArea from './component';
class PresentationAreaContainer extends Component {
constructor(props) {
super(props);
}
render() {
return (
<PresentationArea {...this.props}>
{this.props.children}
</PresentationArea>
);
}
}
export default createContainer(() => ({
currentSlide: PresentationAreaService.getCurrentSlide(),
cursor: PresentationAreaService.getCurrentCursor(),
userIsPresenter: PresentationAreaService.isPresenter(),
}), PresentationAreaContainer);