bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/captions/reader-menu/container.jsx

14 lines
586 B
React
Raw Normal View History

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} />;
export default withTracker(({ setIsOpen }) => ({
closeModal: () => setIsOpen(false),
activateCaptions: (locale, settings) => CaptionsService.activateCaptions(locale, settings),
getCaptionsSettings: () => CaptionsService.getCaptionsSettings(),
ownedLocales: CaptionsService.getOwnedLocales(),
}))(ReaderMenuContainer);