@consumidor-positivo/ts-utils - v1.34.0
    Preparing search index...

    Variable IfElseConst

    IfElse: FC<ComponentWithConditionProps> = ...

    Renders <Then> when condition is truthy, <Else> otherwise.

    import { IfElse, Then, Else } from '@consumidor-positivo/ts-utils/react';

    <IfElse condition={isLoggedIn}>
    <Then>Welcome!</Then>
    <Else>Please log in.</Else>
    </IfElse>

    A boolean, number, string, null, undefined, or a function returning one of these

    Must be <Then> or <Else> components