2021-07-17 01:37:03 +08:00
|
|
|
import React from 'react';
|
2019-05-01 03:24:04 +08:00
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2019-09-07 04:28:02 +08:00
|
|
|
import ActionsBarService from '/imports/ui/components/actions-bar/service';
|
2019-05-01 03:24:04 +08:00
|
|
|
|
|
|
|
import CreateBreakoutRoomModal from './component';
|
|
|
|
|
2021-07-17 01:37:03 +08:00
|
|
|
const CreateBreakoutRoomContainer = (props) => (
|
|
|
|
props.amIModerator
|
|
|
|
&& (
|
|
|
|
<CreateBreakoutRoomModal {...props} />
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2019-05-01 03:24:04 +08:00
|
|
|
export default withTracker(() => ({
|
2019-09-07 04:28:02 +08:00
|
|
|
createBreakoutRoom: ActionsBarService.createBreakoutRoom,
|
|
|
|
getBreakouts: ActionsBarService.getBreakouts,
|
|
|
|
getUsersNotAssigned: ActionsBarService.getUsersNotAssigned,
|
|
|
|
sendInvitation: ActionsBarService.sendInvitation,
|
2020-01-22 23:31:53 +08:00
|
|
|
breakoutJoinedUsers: ActionsBarService.breakoutJoinedUsers(),
|
2019-09-07 04:28:02 +08:00
|
|
|
users: ActionsBarService.users(),
|
2021-02-04 21:59:13 +08:00
|
|
|
isMe: ActionsBarService.isMe,
|
2019-09-07 04:28:02 +08:00
|
|
|
meetingName: ActionsBarService.meetingName(),
|
2021-07-17 01:37:03 +08:00
|
|
|
amIModerator: ActionsBarService.amIModerator(),
|
|
|
|
}))(CreateBreakoutRoomContainer);
|