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';
|
2021-07-16 02:43:38 +08:00
|
|
|
|
2024-05-29 21:26:11 +08:00
|
|
|
const getEnabledSetting = () => window.meetingClientSettings.public.userReaction.enabled;
|
2021-07-16 02:43:38 +08:00
|
|
|
|
2024-05-29 21:26:11 +08:00
|
|
|
const useIsEnabled = () => useIsReactionsEnabled() && getFromUserSettings('enable-user-reaction', getEnabledSetting());
|
2024-05-17 21:37:32 +08:00
|
|
|
|
2021-07-16 02:43:38 +08:00
|
|
|
export default {
|
2024-05-17 21:37:32 +08:00
|
|
|
useIsEnabled,
|
2021-07-16 02:43:38 +08:00
|
|
|
};
|