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

22 lines
851 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(),
getBreakoutByUrlData: BreakoutService.getBreakoutByUrlData,
currentBreakoutUrlData: BreakoutService.getBreakoutUrlByUserId(Auth.userID),
breakoutUserIsIn: BreakoutService.getBreakoutUserIsIn(Auth.userID),
2019-09-05 02:32:58 +08:00
}))(BreakoutRoomInvitationContainer);