mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 01:15:46 +08:00

* use new extensions APIs across grafana core * setup setPluginLinksHook * fix tests * fix mock * fix more broken tests * use plugin components hook * remove unused func * fix tests * remove unused import
10 lines
286 B
TypeScript
10 lines
286 B
TypeScript
import { PluginExtensionPoints } from '@grafana/data';
|
|
import { usePluginComponents } from '@grafana/runtime';
|
|
|
|
export function useAlertingHomePageExtensions() {
|
|
return usePluginComponents({
|
|
extensionPointId: PluginExtensionPoints.AlertingHomePage,
|
|
limitPerPlugin: 1,
|
|
});
|
|
}
|