import React from "react" ; export interface ConditionalProps { children : React . ReactNode ; showIf : boolean ; } /**
 * A smart way to wrap condition.
 */ export const Conditional = ( { children , showIf } ) => ( showIf ? children : null ) ;