import React, { FC } from 'react'; import { PluginState, AlphaNotice } from '@grafana/ui'; import { css } from 'emotion'; interface Props { state?: PluginState; } function getPluginStateInfoText(state?: PluginState): JSX.Element | null { switch (state) { case PluginState.alpha: return (
Alpha Plugin

This plugin is a work in progress and updates may include breaking changes.

); case PluginState.beta: return (
Beta Plugin

There could be bugs and minor breaking changes to this plugin.

); } return null; } const PluginStateinfo: FC = props => { const text = getPluginStateInfoText(props.state); return ( ); }; export default PluginStateinfo;