2019-05-17 04:11:10 +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';
|
2019-05-17 04:11:10 +08:00
|
|
|
import ReaderMenu from './component';
|
|
|
|
import CaptionsService from '/imports/ui/components/captions/service';
|
|
|
|
|
2021-08-09 22:24:02 +08:00
|
|
|
const ReaderMenuContainer = (props) => <ReaderMenu {...props} />;
|
2019-05-17 04:11:10 +08:00
|
|
|
|
|
|
|
export default withModalMounter(withTracker(({ mountModal }) => ({
|
|
|
|
closeModal: () => mountModal(null),
|
|
|
|
activateCaptions: (locale, settings) => CaptionsService.activateCaptions(locale, settings),
|
|
|
|
getCaptionsSettings: () => CaptionsService.getCaptionsSettings(),
|
|
|
|
ownedLocales: CaptionsService.getOwnedLocales(),
|
|
|
|
}))(ReaderMenuContainer));
|