bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/logout-confirmation/container.jsx
2018-01-07 20:44:42 -08:00

18 lines
506 B
JavaScript

import React from 'react';
import { meetingIsBreakout } from '/imports/ui/components/app/service';
import { withTracker } from 'meteor/react-meteor-data';
import LogoutConfirmation from './component';
import {
isModerator,
endMeeting,
} from './service';
const LogoutConfirmationContainer = props => (
<LogoutConfirmation {...props} />
);
export default withTracker(() => ({
showEndMeeting: !meetingIsBreakout() && isModerator(),
handleEndMeeting: endMeeting,
}))(LogoutConfirmationContainer);