import { useContext } from 'react';
import { isNil } from 'ramda';
import { useMdmDcrReviewAllowAddAttributes } from '../../../../contexts/MdmModuleContext';
import { WorkflowTasksContext } from '../../../../contexts/WorkflowTasksContext';
export var useDcrReviewAllowAddAttributes = function () {
    var byEntityType = (useContext(WorkflowTasksContext) || {}).dcrReviewAllowAddAttributes;
    var global = useMdmDcrReviewAllowAddAttributes();
    return isNil(byEntityType) ? global : byEntityType;
};
