2016-05-04 04:40:46 +08:00
|
|
|
import React, { Component, PropTypes } from 'react';
|
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
2016-05-27 08:03:30 +08:00
|
|
|
import WhiteboardService from './service';
|
2016-05-20 21:44:27 +08:00
|
|
|
import Whiteboard from './component';
|
2016-05-04 04:40:46 +08:00
|
|
|
|
|
|
|
class WhiteboardContainer extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2016-05-27 08:03:30 +08:00
|
|
|
<Whiteboard {...this.props}>
|
2016-05-04 04:40:46 +08:00
|
|
|
{this.props.children}
|
|
|
|
</Whiteboard>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default createContainer(() => {
|
2016-05-27 08:03:30 +08:00
|
|
|
const data = WhiteboardService.getWhiteboardData();
|
|
|
|
return data;
|
2016-05-04 04:40:46 +08:00
|
|
|
}, WhiteboardContainer);
|