@openshift-console/dynamic-plugin-sdk
Version:
Provides core APIs, types and utilities used by dynamic plugins at runtime.
27 lines (26 loc) • 1 kB
TypeScript
import * as React from 'react';
import { StatusComponentProps } from '../../../extensions/console-types';
type GenericStatusProps = StatusComponentProps & {
children?: React.ReactNode;
Icon: React.ComponentType<{
title?: string;
}>;
popoverTitle?: string;
noTooltip?: boolean;
};
/**
* Component for a generic status popover
* @param {string} [title] - (optional) status text
* @param {boolean} [iconOnly] - (optional) if true, only displays icon
* @param {boolean} [noTooltip] - (optional) if true, tooltip won't be displayed
* @param {string} [className] - (optional) additional class name for the component
* @param {string} [popoverTitle] - (optional) title for popover
* @param {React.ComponentType} Icon - icon to be displayed
* @param {ReactNode} [children] - (optional) children for the component
* @example
* ```tsx
* <GenericStatus Icon={CircleIcon} />
* ```
*/
declare const GenericStatus: React.FC<GenericStatusProps>;
export default GenericStatus;