import memoizeOne from 'memoize-one'; import { useId } from 'react'; import { PanelProps } from '@grafana/data'; import { Trans } from '@grafana/i18n'; import { useLinks } from '../../../features/explore/utils/links'; import { NodeGraph } from './NodeGraph'; import { Options as NodeGraphOptions } from './panelcfg.gen'; import { getNodeGraphDataFrames } from './utils'; export const NodeGraphPanel = ({ width, height, data, options }: PanelProps) => { const getLinks = useLinks(data.timeRange); const panelId = useId(); if (!data || !data.series.length) { return (

No data found in response

); } const memoizedGetNodeGraphDataFrames = memoizeOne(getNodeGraphDataFrames); return (
); };