2019-05-17 04:11:10 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
|
|
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
|
|
|
|
2023-03-24 21:07:56 +08:00
|
|
|
export default withTracker(({ setIsOpen }) => ({
|
|
|
|
closeModal: () => setIsOpen(false),
|
2019-05-17 04:11:10 +08:00
|
|
|
activateCaptions: (locale, settings) => CaptionsService.activateCaptions(locale, settings),
|
|
|
|
getCaptionsSettings: () => CaptionsService.getCaptionsSettings(),
|
|
|
|
ownedLocales: CaptionsService.getOwnedLocales(),
|
2023-03-24 21:07:56 +08:00
|
|
|
}))(ReaderMenuContainer);
|