material ui add tooltip condifitonally 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>