bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/container.jsx

29 lines
689 B
JavaScript
Executable File

import React, { Component, PropTypes } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import ActionsBar from './component';
import Service from './service';
import { joinListenOnly } from '/imports/api/phone';
class ActionsBarContainer extends Component {
constructor(props) {
super(props);
}
render() {
const handleJoinListenOnly = () => joinListenOnly();
return (
<ActionsBar
handleJoinListenOnly={handleJoinListenOnly}
{...this.props}>
{this.props.children}
</ActionsBar>
);
}
}
export default createContainer(() => {
let data = Service.isUserPresenter();
return data;
}, ActionsBarContainer);