bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/presentation-overlay/container.jsx

31 lines
935 B
React
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import { withTracker } from 'meteor/react-meteor-data';
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';
import PresentationOverlay from './component';
const PresentationOverlayContainer = ({ children, ...rest }) => (
<PresentationOverlay {...rest}>
{children}
</PresentationOverlay>
);
2018-08-14 03:29:38 +08:00
export default withTracker(({ podId, currentSlideNum, slide }) => ({
slide,
podId,
currentSlideNum,
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),
}))(PresentationOverlayContainer);
PresentationOverlayContainer.propTypes = {
children: PropTypes.node,
};
PresentationOverlayContainer.defaultProps = {
children: undefined,
};