import { DataFrame, EventBus, LoadingState, SplitOpen, TimeRange } from '@grafana/data'; import { PanelRenderer } from '@grafana/runtime'; import { PanelChrome, PanelContext, PanelContextProvider } from '@grafana/ui'; import { getPanelPluginMeta } from '../plugins/importPanelPlugin'; import { useExploreDataLinkPostProcessor } from './hooks/useExploreDataLinkPostProcessor'; export interface Props { width: number; height: number; timeZone: string; pluginId: string; frames: DataFrame[]; timeRange: TimeRange; state: LoadingState; splitOpenFn: SplitOpen; eventBus: EventBus; } export function CustomContainer({ width, height, timeZone, state, pluginId, frames, timeRange, splitOpenFn, eventBus, }: Props) { const plugin = getPanelPluginMeta(pluginId); const dataLinkPostProcessor = useExploreDataLinkPostProcessor(splitOpenFn, timeRange); const panelContext: PanelContext = { dataLinkPostProcessor, eventBus, eventsScope: 'explore', }; return ( {(innerWidth, innerHeight) => ( )} ); }