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