bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/external-video-player/container.jsx
2019-02-27 16:59:45 -03:00

29 lines
722 B
JavaScript

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));