UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

Provides core APIs, types and utilities used by dynamic plugins at runtime.

15 lines (14 loc) 421 B
import { UseK8sModels } from '../../../extensions/console-types'; /** * Hook that retrieves all current k8s models from redux. * * @returns An array with the first item as the list of k8s model and second item as inFlight status * @example * ```ts * const Component: React.FC = () => { * const [models, inFlight] = UseK8sModels(); * return ... * } * ``` */ export declare const useK8sModels: UseK8sModels;