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

21 lines
793 B
React
Raw Normal View History

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import BreakoutRoomInvitation from './component';
import BreakoutService from '../service';
import Auth from '/imports/ui/services/auth';
import AppService from '/imports/ui/components/app/service';
const BreakoutRoomInvitationContainer = ({ isMeetingBreakout, ...props }) => {
if (isMeetingBreakout) return null;
return (
<BreakoutRoomInvitation {...props} />
);
};
2019-09-05 02:32:58 +08:00
export default withTracker(() => ({
isMeetingBreakout: AppService.meetingIsBreakout(),
breakouts: BreakoutService.getBreakoutsNoTime(),
lastBreakoutReceived: BreakoutService.getLastBreakoutByUserId(Auth.userID),
breakoutRoomsUserIsIn: BreakoutService.getBreakoutUserIsIn(Auth.userID),
2019-09-05 02:32:58 +08:00
}))(BreakoutRoomInvitationContainer);