import { FunctionComponent } from 'react' ; type Props = { condition : boolean ; wrapper : any ; children : any ; } ; const ConditionalWrapper = ( { condition , wrapper , children , } ) => ( condition ? wrapper ( children ) : children ) ; export default ConditionalWrapper ;