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

34 lines
819 B
JavaScript
Executable File

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import { injectIntl } from 'react-intl';
import JoinVideoButton from './component';
import VideoService from '../service';
import {
updateSettings,
} from '/imports/ui/components/settings/service';
const JoinVideoOptionsContainer = (props) => {
const {
updateSettings,
hasVideoStream,
disableReason,
status,
intl,
...restProps
} = props;
return (
<JoinVideoButton {...{
hasVideoStream, updateSettings, disableReason, status, ...restProps,
}}
/>
);
};
export default injectIntl(withTracker(() => ({
hasVideoStream: VideoService.hasVideoStream(),
updateSettings,
disableReason: VideoService.disableReason(),
status: VideoService.getStatus(),
}))(JoinVideoOptionsContainer));