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

19 lines
736 B
React
Raw Normal View History

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
2018-04-10 02:48:21 +08:00
import { getSwapLayout } from '/imports/ui/components/media/service';
2017-02-17 05:11:46 +08:00
import PresentationAreaService from './service';
import PresentationArea from './component';
const PresentationAreaContainer = ({ presentationPodIds, ...props }) => (
<PresentationArea {...props} />
);
2018-07-27 03:35:38 +08:00
export default withTracker(({ podId }) => {
const currentSlide = PresentationAreaService.getCurrentSlide(podId);
return {
currentSlide,
userIsPresenter: PresentationAreaService.isPresenter(podId) && !getSwapLayout(),
2018-07-27 21:18:45 +08:00
multiUser: PresentationAreaService.getMultiUserStatus(currentSlide && currentSlide.id) && !getSwapLayout(),
2018-07-27 03:35:38 +08:00
};
})(PresentationAreaContainer);