bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/note/container.jsx

23 lines
449 B
React
Raw Normal View History

2019-01-10 02:06:23 +08:00
import React, { PureComponent } from 'react';
2018-12-13 04:10:27 +08:00
import { withTracker } from 'meteor/react-meteor-data';
import Note from './component';
import NoteService from './service';
2019-01-10 02:06:23 +08:00
class NoteContainer extends PureComponent {
2018-12-13 04:10:27 +08:00
render() {
return (
<Note {...this.props}>
{this.props.children}
</Note>
);
}
}
2019-01-10 02:06:23 +08:00
export default withTracker(() => {
2018-12-13 04:10:27 +08:00
const url = NoteService.getNoteURL();
return {
url,
};
2019-01-10 02:06:23 +08:00
})(NoteContainer);