14 lines
505 B
JavaScript
14 lines
505 B
JavaScript
import getFromUserSettings from '/imports/ui/services/users-settings';
|
|
import { isReactionsEnabled, useIsReactionsEnabled } from '/imports/ui/services/features/index';
|
|
|
|
const ENABLED = window.meetingClientSettings.public.userReaction.enabled;
|
|
|
|
const isEnabled = () => isReactionsEnabled() && getFromUserSettings('enable-user-reaction', ENABLED);
|
|
|
|
const useIsEnabled = () => useIsReactionsEnabled() && getFromUserSettings('enable-user-reaction', ENABLED);
|
|
|
|
export default {
|
|
isEnabled,
|
|
useIsEnabled,
|
|
};
|