Solution for [ENG-4561](https://linear.app/comm/issue/ENG-4561/redirect-to-given-chat-when-mention-is-clicked).
This diff introduces newuses `useOnClickThread` hook which redirects to chat when mention is clicked and uses it in `markdown-utils.js` and finally in `markdown-chat-mention.react.js`
Depends on D8852.