16 lines
614 B
JavaScript
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);
|