2016-07-23 08:12:31 +08:00
|
|
|
import React, { Component, PropTypes } from 'react';
|
|
|
|
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-05-16 23:37:17 +08:00
|
|
|
export default createContainer(function () {
|
2017-05-04 05:54:26 +08:00
|
|
|
return ClosedCaptionsService.getCCData();
|
2016-07-23 08:12:31 +08:00
|
|
|
}, ClosedCaptionsContainer);
|