UNPKG

@adaptabletools/adaptable

Version:

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

15 lines (14 loc) 624 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Tag } from '../../../components/Tag'; import { AlertPreview } from '../../../View/Alert/Wizard/AlertNotificationWizardSection'; export const getAlertPreviewViewItems = (alert, api) => { return { name: 'Type and Display', view: () => { if (!alert?.AlertProperties?.DisplayNotification) { return _jsx(Tag, { children: alert.MessageType }); } return (_jsx(AlertPreview, { focusFirstButton: false, className: "twa:max-w-[400px] twa:mt-2", api: api, alertDefinition: alert })); }, }; };