react material tooltip ui conditional rendering code example
Example: Conditionally activate Material UI tooltip?
<Tooltip title={warningText == null ? "" : warningText}>
<Button>Do action</Button>
</Tooltip>
<Tooltip title={warningText == null ? "" : warningText}>
<Button>Do action</Button>
</Tooltip>