[web] convert createTooltip to getTooltipPositionStyle
Summary:
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 and put it back into the useMessageTooltip hook
Depends on D8826
Test Plan: flow and confirmed that the message tooltip on web still behaves and works as expected
Reviewers: atul, kamil, rohan
Reviewed By: atul, rohan
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D8827