notifications.ts 463 B

12345678910111213141516
  1. import { css } from '@emotion/css';
  2. import { GrafanaTheme2 } from '@grafana/data';
  3. import { AlertState } from 'app/plugins/datasource/alertmanager/types';
  4. export const getNotificationsTextColors = (theme: GrafanaTheme2) => ({
  5. [AlertState.Active]: css`
  6. color: ${theme.colors.error.text};
  7. `,
  8. [AlertState.Suppressed]: css`
  9. color: ${theme.colors.primary.text};
  10. `,
  11. [AlertState.Unprocessed]: css`
  12. color: ${theme.colors.secondary.text};
  13. `,
  14. });