apps/meteor/client/hooks/useShouldPreventAction.ts
import type { LicenseLimitKind } from '@rocket.chat/core-typings';
import { useLicense } from './useLicense';
export const useShouldPreventAction = (action: LicenseLimitKind): boolean => {
const { data: { preventedActions } = {} } = useLicense();
return Boolean(preventedActions?.[action]);
};