2017-08-09 04:55:38 +08:00
|
|
|
import React from 'react';
|
2018-01-08 12:44:42 +08:00
|
|
|
import { withTracker } 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-09-26 07:45:44 +08:00
|
|
|
const PresentationAreaContainer = props => (
|
2017-08-21 08:16:39 +08:00
|
|
|
<PresentationArea {...props} />
|
|
|
|
);
|
2016-05-04 04:40:46 +08:00
|
|
|
|
2018-04-10 07:18:49 +08:00
|
|
|
export default withTracker(() => {
|
|
|
|
const currentSlide = PresentationAreaService.getCurrentSlide();
|
|
|
|
const userIsPresenter = PresentationAreaService.isPresenter();
|
|
|
|
const multiUser = currentSlide ?
|
|
|
|
PresentationAreaService.getMultiUserStatus(currentSlide.id) :
|
|
|
|
false;
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
currentSlide,
|
|
|
|
userIsPresenter,
|
|
|
|
multiUser,
|
|
|
|
};
|
|
|
|
return data;
|
|
|
|
})(PresentationAreaContainer);
|