bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/logout-confirmation/container.jsx
2017-08-11 13:32:33 -07:00

32 lines
756 B
JavaScript
Executable File

import React, { Component } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import { makeCall } from '/imports/ui/services/api';
import Auth from '/imports/ui/services/auth';
import userListService from '../user-list/service';
import LogoutConfirmation from './component';
class LogoutConfirmationContainer extends Component {
constructor(props) {
super(props);
}
render() {
return(
<LogoutConfirmation {...this.props} />
);
}
}
export default createContainer(() => {
const isModerator = userListService.getCurrentUser().isModerator;
const endMeeting = () => makeCall('endMeeting', Auth.credentials);
return {
isModerator,
endMeeting,
};
}, LogoutConfirmationContainer);