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

45 lines
1.1 KiB
React
Raw Normal View History

2018-10-24 01:18:09 +08:00
import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import AudioService from '/imports/ui/components/audio/service';
import BreakoutComponent from './component';
import Service from './service';
const BreakoutContainer = props => <BreakoutComponent {...props} />;
export default withTracker((props) => {
const {
endAllBreakouts,
requestJoinURL,
findBreakouts,
2018-10-24 01:18:09 +08:00
breakoutRoomUser,
transferUserToMeeting,
transferToBreakout,
meetingId,
isPresenter,
2018-11-02 01:55:35 +08:00
isModerator,
2018-10-26 23:16:29 +08:00
closeBreakoutPanel,
2019-04-24 20:50:45 +08:00
getUsersByBreakoutId,
2018-10-24 01:18:09 +08:00
} = Service;
const breakoutRooms = findBreakouts();
2018-10-24 01:18:09 +08:00
const isMicrophoneUser = AudioService.isConnected() && !AudioService.isListenOnly();
2019-06-27 00:29:34 +08:00
const isMeteorConnected = Meteor.status().connected;
2018-10-24 01:18:09 +08:00
return {
...props,
breakoutRooms,
endAllBreakouts,
requestJoinURL,
breakoutRoomUser,
transferUserToMeeting,
transferToBreakout,
isMicrophoneUser,
meetingId: meetingId(),
2018-10-24 01:18:09 +08:00
isPresenter: isPresenter(),
2018-11-02 01:55:35 +08:00
isModerator: isModerator(),
2018-10-26 23:16:29 +08:00
closeBreakoutPanel,
2019-04-24 20:50:45 +08:00
getUsersByBreakoutId,
2019-06-27 00:29:34 +08:00
isMeteorConnected,
2018-10-24 01:18:09 +08:00
};
})(BreakoutContainer);