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';
|
|
|
|
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);
|
|
|
|
|
|
|
|
return {
|
|
|
|
title,
|
2019-02-19 20:14:29 +08:00
|
|
|
isPresenter,
|
2018-11-30 01:24:02 +08:00
|
|
|
};
|
|
|
|
})(ExternalVideoContainer));
|