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';
|
2021-11-11 21:10:31 +08:00
|
|
|
import BreakoutRoomService from '/imports/ui/components/breakout-room/service';
|
2019-05-01 03:24:04 +08:00
|
|
|
|
|
|
|
import CreateBreakoutRoomModal from './component';
|
|
|
|
|
2021-08-09 22:24:02 +08:00
|
|
|
const CreateBreakoutRoomContainer = (props) => {
|
|
|
|
const { amIModerator } = props;
|
|
|
|
return (
|
|
|
|
amIModerator
|
|
|
|
&& (
|
|
|
|
<CreateBreakoutRoomModal {...props} />
|
|
|
|
)
|
|
|
|
);
|
|
|
|
};
|
2021-07-17 01:37:03 +08:00
|
|
|
|
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,
|
2021-11-11 21:10:31 +08:00
|
|
|
getLastBreakouts: ActionsBarService.getLastBreakouts,
|
|
|
|
getBreakoutUserWasIn: BreakoutRoomService.getBreakoutUserWasIn,
|
2019-09-07 04:28:02 +08:00
|
|
|
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-11-11 21:10:31 +08:00
|
|
|
groups: ActionsBarService.groups(),
|
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);
|