import React, { Fragment } from 'react';

type Props = {
  condition?: boolean,
  children?: any,
}

function IfTrueThenRender(props: Props) {
  if (!props.condition) {
    return null
  }

  return(
    <Fragment>
      {props.children}
    </Fragment>
  )
}

export default IfTrueThenRender
