2018-11-30 01:24:02 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
|
|
import { withModalMounter } from '/imports/ui/components/modal/service';
|
|
|
|
import ExternalVideoModal from './component';
|
2019-04-25 01:19:35 +08:00
|
|
|
import { startWatching, getVideoId } from '../service';
|
2018-11-30 01:24:02 +08:00
|
|
|
|
2019-01-16 04:44:41 +08:00
|
|
|
const ExternalVideoModalContainer = props => <ExternalVideoModal {...props} />;
|
2018-11-30 01:24:02 +08:00
|
|
|
|
2019-01-16 04:44:41 +08:00
|
|
|
export default withModalMounter(withTracker(({ mountModal }) => ({
|
|
|
|
closeModal: () => {
|
|
|
|
mountModal(null);
|
|
|
|
},
|
|
|
|
startWatching,
|
|
|
|
videoId: getVideoId(),
|
|
|
|
}))(ExternalVideoModalContainer));
|