2019-05-17 04:11:10 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
|
|
import CaptionsService from './service';
|
|
|
|
import Captions from './component';
|
|
|
|
|
|
|
|
const CaptionsContainer = props => (
|
|
|
|
<Captions {...props} />
|
|
|
|
);
|
|
|
|
|
|
|
|
export default withTracker(() => {
|
|
|
|
const {
|
2021-10-05 03:22:18 +08:00
|
|
|
locale,
|
2019-05-21 00:43:31 +08:00
|
|
|
revs,
|
|
|
|
data,
|
|
|
|
} = CaptionsService.getCaptionsData();
|
2019-05-17 04:11:10 +08:00
|
|
|
|
|
|
|
return {
|
2021-10-05 03:22:18 +08:00
|
|
|
locale,
|
2019-05-21 00:43:31 +08:00
|
|
|
revs,
|
|
|
|
data,
|
2019-05-17 04:11:10 +08:00
|
|
|
};
|
|
|
|
})(CaptionsContainer);
|