bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/logout-confirmation/container.jsx
2017-11-01 13:47:14 -02:00

21 lines
551 B
JavaScript

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