2018-11-30 01:24:02 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2022-02-15 23:54:55 +08:00
|
|
|
import { withModalMounter } from '/imports/ui/components/common/modal/service';
|
2018-11-30 01:24:02 +08:00
|
|
|
import ExternalVideoModal from './component';
|
2019-07-13 04:08:55 +08:00
|
|
|
import { startWatching, getVideoUrl } 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,
|
2019-07-13 04:08:55 +08:00
|
|
|
videoUrl: getVideoUrl(),
|
2019-01-16 04:44:41 +08:00
|
|
|
}))(ExternalVideoModalContainer));
|