"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useDcrReviewAllowAddAttributes = void 0;
var react_1 = require("react");
var ramda_1 = require("ramda");
var MdmModuleContext_1 = require("../../../../contexts/MdmModuleContext");
var WorkflowTasksContext_1 = require("../../../../contexts/WorkflowTasksContext");
var useDcrReviewAllowAddAttributes = function () {
    var byEntityType = ((0, react_1.useContext)(WorkflowTasksContext_1.WorkflowTasksContext) || {}).dcrReviewAllowAddAttributes;
    var global = (0, MdmModuleContext_1.useMdmDcrReviewAllowAddAttributes)();
    return (0, ramda_1.isNil)(byEntityType) ? global : byEntityType;
};
exports.useDcrReviewAllowAddAttributes = useDcrReviewAllowAddAttributes;
