UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

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

8 lines (7 loc) 279 B
export type UseFlag = (flag: string) => boolean; /** * Hook that returns the given feature flag from FLAGS redux state. * @param flag The feature flag to return * @returns the boolean value of the requested feature flag or undefined */ export declare const useFlag: UseFlag;