UNPKG

@adaptabletools/adaptable-cjs

Version:

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

20 lines (19 loc) 914 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAlertPreviewViewItems = void 0; const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const Tag_1 = require("../../../components/Tag"); const AlertNotificationWizardSection_1 = require("../../../View/Alert/Wizard/AlertNotificationWizardSection"); const getAlertPreviewViewItems = (alert, api) => { return { name: 'Type and Display', view: () => { if (!alert?.AlertProperties?.DisplayNotification) { return React.createElement(Tag_1.Tag, null, alert.MessageType); } return (React.createElement(AlertNotificationWizardSection_1.AlertPreview, { focusFirstButton: false, style: { maxWidth: 400 }, mt: 2, api: api, alertDefinition: alert })); }, }; }; exports.getAlertPreviewViewItems = getAlertPreviewViewItems;