import React from 'react'; import { RenderProp } from '../falsyFC/falsyFC.component'; import { TextProps } from '../../../ui/text/text.component'; export interface FalsyTextProps extends Omit { component?: RenderProp | React.ReactText; } /** * Helper component for optional text properties. * * Accepts same props as Text component, * and `component` which may be a string, a function, null or undefined. * * If it is null or undefined, will render nothing. * If it is a function, will call it with props passed to this component. * Otherwise, will render a Text with props passed to this component. * * @example Will render nothing. * ``` * * ``` * * @example Will render red title. * ``` * const Title = () => ( * * ); * ``` * * @example Will render image and red title. * ``` * const renderTitle = (props) => ( * * * Title * * ); * * const Title = () => ( * * ); * ``` */ export declare class FalsyText extends React.Component { render(): React.ReactElement; }