In an effort to make the tooltip code more component agnostic, I refactored this function to only get and return the tooltip position style since this logic can be reused for every single different type of tooltip we introduce in the future (which we are about to do shortly), and factored out any message tooltip specific code back into the `useMessageTooltip` hook
Depends on D8826