bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/container.jsx
2018-04-09 15:48:21 -03:00

16 lines
614 B
JavaScript

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import { getSwapLayout } from '/imports/ui/components/media/service';
import PresentationAreaService from './service';
import PresentationArea from './component';
const PresentationAreaContainer = props => (
<PresentationArea {...props} />
);
export default withTracker(() => ({
currentSlide: PresentationAreaService.getCurrentSlide(),
userIsPresenter: PresentationAreaService.isPresenter() && !getSwapLayout(),
multiUser: PresentationAreaService.getMultiUserStatus() && !getSwapLayout(),
}))(PresentationAreaContainer);