Set the favicon of the page and update it when the value changes.
This is custom React hooks, you need to follow the Basic Rules when you use it.
The icon of the tab follows the choice.
const useFavicon = (url: string) => void