bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/create-breakout-room/container.jsx

47 lines
2.0 KiB
React
Raw Normal View History

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import ActionsBarService from '/imports/ui/components/actions-bar/service';
import BreakoutRoomService from '/imports/ui/components/breakout-room/service';
import CreateBreakoutRoomModal from './component';
2023-01-18 01:01:18 +08:00
import { isImportSharedNotesFromBreakoutRoomsEnabled, isImportPresentationWithAnnotationsFromBreakoutRoomsEnabled } from '/imports/ui/services/features';
const METEOR_SETTINGS_APP = Meteor.settings.public.app;
2021-08-09 22:24:02 +08:00
const CreateBreakoutRoomContainer = (props) => {
2023-01-18 01:01:18 +08:00
const { setAllowUserToChooseABreakout } = METEOR_SETTINGS_APP.breakouts;
const setCaptureBreakoutWhiteboard = METEOR_SETTINGS_APP.breakouts.setCaptureBreakoutWhiteboard
&& isImportPresentationWithAnnotationsFromBreakoutRoomsEnabled;
const setCaptureBreakoutNotes = METEOR_SETTINGS_APP.breakouts.setCaptureBreakoutWhiteboard
&& isImportSharedNotesFromBreakoutRoomsEnabled;
2021-08-09 22:24:02 +08:00
const { amIModerator } = props;
return (
amIModerator
&& (
<CreateBreakoutRoomModal
{...props}
{...{
2023-01-18 01:01:18 +08:00
setAllowUserToChooseABreakout,
setCaptureBreakoutWhiteboard,
setCaptureBreakoutNotes,
}}
/>
2021-08-09 22:24:02 +08:00
)
);
};
export default withTracker(() => ({
createBreakoutRoom: ActionsBarService.createBreakoutRoom,
getBreakouts: ActionsBarService.getBreakouts,
getLastBreakouts: ActionsBarService.getLastBreakouts,
getBreakoutUserWasIn: BreakoutRoomService.getBreakoutUserWasIn,
getUsersNotJoined: ActionsBarService.getUsersNotJoined,
sendInvitation: ActionsBarService.sendInvitation,
breakoutJoinedUsers: ActionsBarService.breakoutJoinedUsers(),
users: ActionsBarService.users(),
groups: ActionsBarService.groups(),
isMe: ActionsBarService.isMe,
meetingName: ActionsBarService.meetingName(),
amIModerator: ActionsBarService.amIModerator(),
moveUser: ActionsBarService.moveUser,
}))(CreateBreakoutRoomContainer);