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

29 lines
722 B
React
Raw Normal View History

import React from 'react';
import { defineMessages, injectIntl } from 'react-intl';
import { withTracker } from 'meteor/react-meteor-data';
import { Session } from 'meteor/session';
import ExternalVideo from './component';
const intlMessages = defineMessages({
title: {
id: 'app.externalVideo.title',
description: '',
},
});
const ExternalVideoContainer = props => (
<ExternalVideo {...props}>
{props.children}
</ExternalVideo>
);
export default injectIntl(withTracker(({ params, intl, isPresenter }) => {
const title = intl.formatMessage(intlMessages.title);
const inEchoTest = Session.get('inEchoTest');
return {
inEchoTest,
title,
isPresenter,
};
})(ExternalVideoContainer));