bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/container.jsx
2017-03-13 09:05:54 -07:00

32 lines
828 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';
import { exitAudio } from '/imports/api/phone';
class ActionsBarContainer extends Component {
constructor(props) {
super(props);
}
render() {
const handleJoinListenOnly = () => joinListenOnly();
const handleExitAudio = () => exitAudio();
return (
<ActionsBar
handleJoinListenOnly={handleJoinListenOnly}
handleExitAudio={handleExitAudio}
{...this.props}>
{this.props.children}
</ActionsBar>
);
}
}
export default createContainer(() => {
let data = Service.isUserPresenter();
return data;
}, ActionsBarContainer);