grafana/public/app/features/alerting/components/DeprecationNotice.tsx
2022-06-08 13:35:37 +02:00

30 lines
974 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React, { FC } from 'react';
import { Alert } from '@grafana/ui';
export const LOCAL_STORAGE_KEY = 'grafana.legacyalerting.unifiedalertingpromo';
const DeprecationNotice: FC<{}> = () => (
<Alert severity="warning" title="Grafana legacy alerting is going away soon">
<p>
You are using Grafana legacy alerting, it has been deprecated and will be removed in the next major version of
Grafana.
<br />
We encourage you to upgrade to the new Grafana Alerting experience.
</p>
<p>
See{' '}
<a href="https://grafana.com/docs/grafana/latest/alerting/unified-alerting/difference-old-new/">
Whats New with Grafana Alerting
</a>{' '}
to learn more about what&lsquo;s new or learn{' '}
<a href="https://grafana.com/docs/grafana/latest/alerting/unified-alerting/opt-in/">
how to enable the new Grafana Alerting feature
</a>
.
</p>
</Alert>
);
export { DeprecationNotice };