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

40 lines
953 B
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,
breakouts,
breakoutRoomUser,
transferUserToMeeting,
transferToBreakout,
meetingId,
isPresenter,
2018-10-26 23:16:29 +08:00
closeBreakoutPanel,
2018-10-24 01:18:09 +08:00
} = Service;
const breakoutRooms = breakouts();
const isMicrophoneUser = AudioService.isConnected() && !AudioService.isListenOnly();
return {
...props,
breakoutRooms,
endAllBreakouts,
requestJoinURL,
breakoutRoomUser,
transferUserToMeeting,
transferToBreakout,
isMicrophoneUser,
meetingId,
isPresenter: isPresenter(),
2018-10-26 23:16:29 +08:00
closeBreakoutPanel,
2018-10-24 01:18:09 +08:00
};
})(BreakoutContainer);