bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/whiteboard/container.jsx
2016-11-11 19:02:46 +00:00

26 lines
679 B
JavaScript
Executable File

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