@openshift-console/dynamic-plugin-sdk
Version:
Provides core APIs, types and utilities used by dynamic plugins at runtime.
55 lines (54 loc) • 2.31 kB
TypeScript
import * as React from 'react';
import { StatusComponentProps } from '../../../extensions/console-types';
/**
* Component for displaying an error status popover.
* @param {string} [title] - (optional) status text
* @param {boolean} [iconOnly] - (optional) if true, only displays icon
* @param {boolean} [noTooltip] - (optional) if true, tooltip is not displayed
* @param {string} [className] - (optional) additional class name for the component
* @param {string} [popoverTitle] - (optional) title for popover
* @example
* ```tsx
* <ErrorStatus title={errorMsg} />
* ```
*/
export declare const ErrorStatus: React.FC<StatusComponentProps>;
/**
* Component for displaying an information status popover.
* @param {string} [title] - (optional) status text
* @param {boolean} [iconOnly] - (optional) if true, only displays icon
* @param {boolean} [noTooltip] - (optional) if true, tooltip is not displayed
* @param {string} [className] - (optional) additional class name for the component
* @param {string} [popoverTitle] - (optional) title for popover
* @example
* ```tsx
* <InfoStatus title={infoMsg} />
* ```
*/
export declare const InfoStatus: React.FC<StatusComponentProps>;
/**
* Component for displaying a progressing status popover.
* @param {string} [title] - (optional) status text
* @param {boolean} [iconOnly] - (optional) if true, only displays icon
* @param {boolean} [noTooltip] - (optional) if true, tooltip is not displayed
* @param {string} [className] - (optional) additional class name for the component
* @param {string} [popoverTitle] - (optional) title for popover
* @example
* ```tsx
* <ProgressStatus title={progressMsg} />
* ```
*/
export declare const ProgressStatus: React.FC<StatusComponentProps>;
/**
* Component for displaying a success status popover.
* @param {string} [title] - (optional) status text
* @param {boolean} [iconOnly] - (optional) if true, only displays icon
* @param {boolean} [noTooltip] - (optional) if true, tooltip is not displayed
* @param {string} [className] - (optional) additional class name for the component
* @param {string} [popoverTitle] - (optional) title for popover
* @example
* ```tsx
* <SuccessStatus title={successMsg} />
* ```
*/
export declare const SuccessStatus: React.FC<StatusComponentProps>;