You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
462 B
15 lines
462 B
import { GrafanaTheme2 } from '@grafana/data';
|
|
import { css } from '@emotion/css';
|
|
import { AlertState } from 'app/plugins/datasource/alertmanager/types';
|
|
|
|
export const getNotificationsTextColors = (theme: GrafanaTheme2) => ({
|
|
[AlertState.Active]: css`
|
|
color: ${theme.colors.error.text};
|
|
`,
|
|
[AlertState.Suppressed]: css`
|
|
color: ${theme.colors.primary.text};
|
|
`,
|
|
[AlertState.Unprocessed]: css`
|
|
color: ${theme.colors.secondary.text};
|
|
`,
|
|
});
|
|
|