2019-01-16 04:44:41 +08:00
|
|
|
import React from 'react';
|
2018-11-30 01:24:02 +08:00
|
|
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2019-02-28 03:59:45 +08:00
|
|
|
import { Session } from 'meteor/session';
|
2018-11-30 01:24:02 +08:00
|
|
|
import ExternalVideo from './component';
|
|
|
|
|
|
|
|
const intlMessages = defineMessages({
|
|
|
|
title: {
|
|
|
|
id: 'app.externalVideo.title',
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2019-01-16 04:44:41 +08:00
|
|
|
const ExternalVideoContainer = props => (
|
|
|
|
<ExternalVideo {...props}>
|
|
|
|
{props.children}
|
|
|
|
</ExternalVideo>
|
|
|
|
);
|
2018-11-30 01:24:02 +08:00
|
|
|
|
2019-02-19 20:14:29 +08:00
|
|
|
export default injectIntl(withTracker(({ params, intl, isPresenter }) => {
|
2018-11-30 01:24:02 +08:00
|
|
|
const title = intl.formatMessage(intlMessages.title);
|
2019-02-28 03:59:45 +08:00
|
|
|
const inEchoTest = Session.get('inEchoTest');
|
2018-11-30 01:24:02 +08:00
|
|
|
return {
|
2019-02-28 03:59:45 +08:00
|
|
|
inEchoTest,
|
2018-11-30 01:24:02 +08:00
|
|
|
title,
|
2019-02-19 20:14:29 +08:00
|
|
|
isPresenter,
|
2018-11-30 01:24:02 +08:00
|
|
|
};
|
|
|
|
})(ExternalVideoContainer));
|