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

25 lines
656 B
React
Raw Normal View History

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { createContainer } from 'meteor/react-meteor-data';
2017-02-17 05:11:46 +08:00
import PresentationAreaService from './service';
import PresentationArea from './component';
2017-02-17 05:11:46 +08:00
class PresentationAreaContainer extends Component {
constructor(props) {
super(props);
}
render() {
return (
2017-02-17 05:11:46 +08:00
<PresentationArea {...this.props}>
{this.props.children}
2017-02-17 05:11:46 +08:00
</PresentationArea>
);
}
}
2016-11-12 03:02:46 +08:00
export default createContainer(() => ({
2017-02-17 05:11:46 +08:00
currentSlide: PresentationAreaService.getCurrentSlide(),
userIsPresenter: PresentationAreaService.isPresenter(),
}), PresentationAreaContainer);