2017-06-04 10:40:14 +08:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2016-07-23 08:12:31 +08:00
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
|
|
|
import ClosedCaptionsService from './service.js';
|
|
|
|
import ClosedCaptions from './component';
|
|
|
|
|
|
|
|
class ClosedCaptionsContainer extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<ClosedCaptions {...this.props}>
|
|
|
|
{this.props.children}
|
|
|
|
</ClosedCaptions>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-03 03:25:02 +08:00
|
|
|
export default createContainer(() => ClosedCaptionsService.getCCData(), ClosedCaptionsContainer);
|