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

24 lines
661 B
React
Raw Normal View History

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
2017-02-17 05:11:46 +08:00
import PresentationAreaService from './service';
import PresentationArea from './component';
const PresentationAreaContainer = props => (
<PresentationArea {...props} />
);
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);