@adaptabletools/adaptable-cjs
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
16 lines (15 loc) • 815 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlertEmptyView = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const AdaptableContext_1 = require("../AdaptableContext");
const AlertEmptyView = (props) => {
const adaptable = (0, AdaptableContext_1.useAdaptable)();
const accessLevel = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule(props.module.moduleInfo.ModuleName);
const text = accessLevel == 'ReadOnly'
? 'You have no Alert Definitions.'
: "Click 'New' to create a new Alert Definition - this will include the Rule which triggers the Alert, and the behaviour of the Alert.";
return React.createElement(React.Fragment, null, text);
};
exports.AlertEmptyView = AlertEmptyView;