bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/breakout-room/invitation/container.jsx
2022-04-12 09:50:19 -03:00

21 lines
793 B
JavaScript

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} />
);
};
export default withTracker(() => ({
isMeetingBreakout: AppService.meetingIsBreakout(),
breakouts: BreakoutService.getBreakoutsNoTime(),
lastBreakoutReceived: BreakoutService.getLastBreakoutByUserId(Auth.userID),
breakoutRoomsUserIsIn: BreakoutService.getBreakoutUserIsIn(Auth.userID),
}))(BreakoutRoomInvitationContainer);