how to not to pass props base on condition? I can do this
const condition = true
<ThirdPartyComponent custom={() => condition ? <h1>hello<h1> : null}
but ThirdPartyComponent will still get null, I want to skip passing custom prop to ThirdPartyComponent. Note that I don't have access to ThirdPartyComponent.