UNPKG

@openshift-assisted/ui-lib

Version:

React component library for the Assisted Installer UI

24 lines 1.12 kB
import React from 'react'; export type AssistedInstallerFeatureType = 'ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE'; export type FeatureListType = { [key in AssistedInstallerFeatureType]?: boolean; }; export type AssistedInstallerOCMPermissionTypes = 'canEdit'; export type AssistedInstallerOCMPermissionTypesListType = { [key in AssistedInstallerOCMPermissionTypes]: boolean; }; export type AssistedInstallerPermissionTypes = 'isViewerMode'; export type AssistedInstallerPermissionTypesListType = { [key in AssistedInstallerPermissionTypes]: boolean; }; export declare const ACM_ENABLED_FEATURES: FeatureListType; export declare const STANDALONE_DEPLOYMENT_ENABLED_FEATURES: FeatureListType; export type FeatureGateContextType = { isFeatureEnabled: (feature: AssistedInstallerFeatureType) => boolean; }; export declare const FeatureGateContext: React.Context<FeatureGateContextType>; export declare const FeatureGateContextProvider: React.FC<{ features: FeatureListType; }>; export declare const useFeature: (feature: AssistedInstallerFeatureType) => boolean; //# sourceMappingURL=featureGate.d.ts.map