import * as React from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { ActionIcon, Tooltip } from '@mantine/core'; import { dvDownloadVisualization } from '../../icons/font-awesome/icon-download-visualization'; import { BaseVisConfig } from '../interfaces'; import { DownloadPlotOptions, useCaptureVisScreenshot } from '../useCaptureVisScreenshot'; export function DownloadPlotButton({ uniquePlotId, config, options }: { config: BaseVisConfig; uniquePlotId: string; options?: DownloadPlotOptions }) { const [{ isLoading }, captureScreenshot] = useCaptureVisScreenshot(uniquePlotId, config, options); return ( ); }