import memoizeOne from 'memoize-one'; import React from 'react'; import { PanelProps } from '@grafana/data'; import { useLinks } from '../../../features/explore/utils/links'; import { NodeGraph } from './NodeGraph'; import { Options } from './types'; import { getNodeGraphDataFrames } from './utils'; export const NodeGraphPanel: React.FunctionComponent> = ({ width, height, data }) => { const getLinks = useLinks(data.timeRange); if (!data || !data.series.length) { return (

No data found in response

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