bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/video-provider/container.jsx

13 lines
451 B
React
Raw Normal View History

2018-02-17 03:18:53 +08:00
import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import VideoProvider from './component';
import VideoService from './service';
2018-02-17 03:18:53 +08:00
const VideoProviderContainer = ({ children, ...props }) => <VideoProvider {...props}>{children}</VideoProvider>;
export default withTracker(() => ({
2018-03-22 22:14:54 +08:00
isLocked: VideoService.isLocked(),
meetingId: VideoService.meetingId(),
userId: VideoService.userId(),
}))(VideoProviderContainer);