bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/logout-confirmation/container.jsx

18 lines
506 B
React
Raw Normal View History

2017-09-22 02:50:21 +08:00
import React from 'react';
import { meetingIsBreakout } from '/imports/ui/components/app/service';
import { withTracker } from 'meteor/react-meteor-data';
2017-08-12 04:32:33 +08:00
import LogoutConfirmation from './component';
import {
isModerator,
endMeeting,
} from './service';
2017-08-12 04:32:33 +08:00
const LogoutConfirmationContainer = props => (
<LogoutConfirmation {...props} />
2017-09-22 02:50:21 +08:00
);
2017-08-12 04:32:33 +08:00
export default withTracker(() => ({
showEndMeeting: !meetingIsBreakout() && isModerator(),
handleEndMeeting: endMeeting,
}))(LogoutConfirmationContainer);