24 lines
570 B
JavaScript
24 lines
570 B
JavaScript
import React, { Component, PropTypes } from 'react';
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
|
import ClosedCaptionsMenu from './component';
|
|
import Service from './service';
|
|
|
|
class ClosedCaptionsMenuContainer extends Component {
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<ClosedCaptionsMenu {...this.props}>
|
|
{this.props.children}
|
|
</ClosedCaptionsMenu>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default createContainer(() => {
|
|
let data = Service.getClosedCaptionSettings();
|
|
return data;
|
|
}, ClosedCaptionsMenuContainer);
|