UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

12 lines (11 loc) 709 B
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime"; import { ACCESS_LEVEL_READ_ONLY } from '../../Utilities/Constants/GeneralConstants'; import { useAdaptable } from '../AdaptableContext'; export const AlertEmptyView = (props) => { const adaptable = useAdaptable(); const accessLevel = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule(props.module.moduleInfo.ModuleName); const text = accessLevel == ACCESS_LEVEL_READ_ONLY ? '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 _jsx(_Fragment, { children: text }); };