2017-05-02 05:34:24 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
|
|
|
import WhiteboardOverlayService from './service';
|
|
|
|
import WhiteboardOverlay from './component';
|
|
|
|
|
|
|
|
class WhiteboardOverlayContainer extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
2017-06-03 07:40:52 +08:00
|
|
|
|
|
|
|
if(this.props.drawSettings) {
|
|
|
|
return (
|
|
|
|
<WhiteboardOverlay {...this.props}/>
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
2017-05-02 05:34:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default createContainer(() => ({
|
|
|
|
sendAnnotation: WhiteboardOverlayService.sendAnnotation,
|
2017-05-03 08:05:41 +08:00
|
|
|
drawSettings: WhiteboardOverlayService.getWhiteboardToolbarValues(),
|
2017-06-11 10:21:37 +08:00
|
|
|
textShapeValue: WhiteboardOverlayService.getTextShapeValue(),
|
2017-05-02 05:34:24 +08:00
|
|
|
}), WhiteboardOverlayContainer);
|