1/* Wrap the button in a span or div and conditionally set pointer-events to none */
2<Tooltip title="You don't have permission to do this">
3 <span>
4 <button disabled={disabled} style={disabled ? { pointerEvents: "none" } : {}}>
5 {'A disabled button'}
6 </button>
7 </span>
8</Tooltip>