UNPKG

@adaptabletools/adaptable-cjs

Version:

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

17 lines (16 loc) 685 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStatusItemStyle = void 0; const tslib_1 = require("tslib"); const UIHelper_1 = tslib_1.__importDefault(require("../../UIHelper")); const getStatusItemStyle = (systemStatusMessageInfo) => { const background = UIHelper_1.default.getColorByMessageType(systemStatusMessageInfo?.statusType ?? 'Success'); const color = systemStatusMessageInfo ? UIHelper_1.default.getButtonTextColourForMessageType(systemStatusMessageInfo.statusType) : 'var(--ab-color-text-on-primary)'; return { background, color, }; }; exports.getStatusItemStyle = getStatusItemStyle;