@devcycle/react-client-sdk
Version:
The DevCycle React SDK used for feature management.
13 lines (12 loc) • 454 B
TypeScript
import { DVCVariableValue } from '@devcycle/js-client-sdk';
import { VariableKey } from '@devcycle/types';
type CommonProps = {
children: React.ReactNode;
variableKey: VariableKey;
};
type RenderIfEnabledProps<T extends DVCVariableValue> = CommonProps | (CommonProps & {
targetValue: T;
defaultValue: T;
});
export declare const RenderIfEnabled: <T extends DVCVariableValue>(props: RenderIfEnabledProps<T>) => React.ReactNode;
export {};