@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
11 lines (10 loc) • 584 B
JavaScript
import * as React from 'react';
import { useAdaptable } from '../AdaptableContext';
export const AlertEmptyView = (props) => {
const adaptable = 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);
};