2017-06-04 10:40:14 +08:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2016-05-04 04:40:46 +08:00
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
2017-02-17 05:11:46 +08:00
|
|
|
import PresentationAreaService from './service';
|
|
|
|
import PresentationArea from './component';
|
2016-05-04 04:40:46 +08:00
|
|
|
|
2017-02-17 05:11:46 +08:00
|
|
|
class PresentationAreaContainer extends Component {
|
2016-05-04 04:40:46 +08:00
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2017-02-17 05:11:46 +08:00
|
|
|
<PresentationArea {...this.props}>
|
2016-05-04 04:40:46 +08:00
|
|
|
{this.props.children}
|
2017-02-17 05:11:46 +08:00
|
|
|
</PresentationArea>
|
2016-05-04 04:40:46 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-12 03:02:46 +08:00
|
|
|
export default createContainer(() => ({
|
2017-02-17 05:11:46 +08:00
|
|
|
currentSlide: PresentationAreaService.getCurrentSlide(),
|
|
|
|
userIsPresenter: PresentationAreaService.isPresenter(),
|
|
|
|
}), PresentationAreaContainer);
|