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

16 lines
614 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 = props => (
<PresentationArea {...props} />
);
export default withTracker(() => ({
2017-02-17 05:11:46 +08:00
currentSlide: PresentationAreaService.getCurrentSlide(),
2018-04-10 02:48:21 +08:00
userIsPresenter: PresentationAreaService.isPresenter() && !getSwapLayout(),
multiUser: PresentationAreaService.getMultiUserStatus() && !getSwapLayout(),
}))(PresentationAreaContainer);