bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-reaction/service.js

11 lines
397 B
JavaScript
Raw Normal View History

2023-04-28 05:31:11 +08:00
import getFromUserSettings from '/imports/ui/services/users-settings';
2024-06-14 21:30:48 +08:00
import { useIsReactionsEnabled } from '/imports/ui/services/features/index';
const getEnabledSetting = () => window.meetingClientSettings.public.userReaction.enabled;
const useIsEnabled = () => useIsReactionsEnabled() && getFromUserSettings('enable-user-reaction', getEnabledSetting());
export default {
useIsEnabled,
};