2017-02-24 08:11:27 +08:00
|
|
|
import React from 'react';
|
2017-08-21 08:16:39 +08:00
|
|
|
import PropTypes from 'prop-types';
|
2018-01-08 12:44:42 +08:00
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2017-02-24 08:11:27 +08:00
|
|
|
import PresentationOverlayService from './service';
|
2018-08-14 03:29:38 +08:00
|
|
|
import PresentationToolbarService from '../presentation-toolbar/service';
|
2018-09-20 02:10:25 +08:00
|
|
|
import PresentationService from '../service';
|
2017-02-24 08:11:27 +08:00
|
|
|
import PresentationOverlay from './component';
|
|
|
|
|
2017-08-21 08:16:39 +08:00
|
|
|
const PresentationOverlayContainer = ({ children, ...rest }) => (
|
|
|
|
<PresentationOverlay {...rest}>
|
|
|
|
{children}
|
|
|
|
</PresentationOverlay>
|
|
|
|
);
|
2017-02-24 08:11:27 +08:00
|
|
|
|
2018-08-14 03:29:38 +08:00
|
|
|
export default withTracker(({ podId, currentSlideNum, slide }) => ({
|
|
|
|
slide,
|
|
|
|
podId,
|
|
|
|
currentSlideNum,
|
2017-02-24 08:11:27 +08:00
|
|
|
updateCursor: PresentationOverlayService.updateCursor,
|
2018-08-14 03:29:38 +08:00
|
|
|
zoomSlide: PresentationToolbarService.zoomSlide,
|
2018-09-20 02:10:25 +08:00
|
|
|
isPresenter: PresentationService.isPresenter(podId),
|
2018-01-08 12:44:42 +08:00
|
|
|
}))(PresentationOverlayContainer);
|
2017-08-21 08:16:39 +08:00
|
|
|
|
|
|
|
PresentationOverlayContainer.propTypes = {
|
|
|
|
children: PropTypes.node,
|
|
|
|
};
|
|
|
|
|
|
|
|
PresentationOverlayContainer.defaultProps = {
|
|
|
|
children: undefined,
|
|
|
|
};
|