UNPKG

@twilio/flex-ui

Version:

Twilio Flex UI

17 lines (16 loc) 770 B
import * as React from "react"; import { FeatureFlag, Feature } from "../models/FeatureFlagsModel"; interface OwnProps { children: React.ReactElement; id: FeatureFlag; disabledComponent?: React.ReactElement; } interface StateProps { feature?: Feature; } type FeatureFlagGuardProps = OwnProps & StateProps; export declare class FeatureFlagGuardComponent extends React.Component<FeatureFlagGuardProps> { render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> & React.ReactNode; } export declare const FeatureFlagGuard: import("react-redux").ConnectedComponent<typeof FeatureFlagGuardComponent, import("react-redux").Omit<React.ClassAttributes<FeatureFlagGuardComponent> & OwnProps & StateProps, "feature"> & OwnProps>; export {};