import React, { FC } from 'react'; import { Alert } from '@grafana/ui'; import { useLocalStorage } from 'react-use'; export const LOCAL_STORAGE_KEY = 'grafana.legacyalerting.unifiedalertingpromo'; const UnifiedAlertingPromotion: FC<{}> = () => { const [showUnifiedAlertingPromotion, setShowUnifiedAlertingPromotion] = useLocalStorage( LOCAL_STORAGE_KEY, true ); if (!showUnifiedAlertingPromotion) { return null; } return ( setShowUnifiedAlertingPromotion(false)} >

You are using the legacy Grafana alerting.
While we have no plans of deprecating it any time soon, we invite you to give the improved Grafana 8 alerting a try.

See{' '} What’s New with Grafana 8 alerting {' '} to learn more about what‘s new in Grafana 8 alerting or learn{' '} how to enable the new Grafana 8 alerting feature .

); }; export { UnifiedAlertingPromotion };