/// /** * Higher-order component creator, creating a new component which renders if * the given condition is satisfied or with the given optional prop name. * * @example * ```ts * type Props = { foo: string }; * const Component = ( props: Props ) =>
{ props.foo }
; * const ConditionalComponent = ifCondition( ( props: Props ) => props.foo.length !== 0 )( Component ); * ; // => null * ; // =>
bar
; * ``` * * @param predicate Function to test condition. * * @return Higher-order component. */ declare const ifCondition: >(predicate: (props: TProps) => boolean) => (Inner: import("react").ComponentType) => import("react").ComponentType; export default ifCondition; //# sourceMappingURL=index.d.ts.map