import React from 'react'; import { Alert } from '@grafana/ui'; export interface Props { variant?: 'info' | 'error'; } const actionMessage = 'Please contact your Grafana administrator to install the plugin.'; const NoRendererInfoMessage = (): JSX.Element => { return ( <> <>To generate PDF reports, you must install the Grafana Image Renderer <> plugin. ); }; export const NoRendererInfoBox = ({ variant = 'info' }: Props): JSX.Element => { return (
{actionMessage}
); }; const OldRendererInfoMessage = (): JSX.Element => { return ( <> <>To generate CSV files, you must update the Grafana Image Renderer <> plugin. ); }; export const OldRendererInfoBox = (): JSX.Element => { return (
{actionMessage}
); };