@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
12 lines (11 loc) • 446 B
JavaScript
import UIHelper from '../../UIHelper';
export const getStatusItemStyle = (systemStatusMessageInfo) => {
const background = UIHelper.getColorByMessageType(systemStatusMessageInfo?.statusType ?? 'Success');
const color = systemStatusMessageInfo
? UIHelper.getButtonTextColourForMessageType(systemStatusMessageInfo.statusType)
: 'var(--ab-color-primary-foreground)';
return {
background,
color,
};
};