import { type CSSProperties, type JSX } from 'react'; import * as React from 'react'; import { type ActionModel, type LinkModel } from '@grafana/data'; import { type OpenMenuTrigger } from '../ContextMenu/WithContextMenu'; export interface DataLinksContextMenuProps { children: (props: DataLinksContextMenuApi) => JSX.Element; links: () => LinkModel[]; style?: CSSProperties; /** * @deprecated Will be removed in a future version */ actions?: ActionModel[]; } /** * Props consumers spread on the focusable element that opens the data-links menu. * Intentionally `Partial<...>` of the underlying handler types so the props can * be applied to either an HTML element (`