The StatusBarContextValue from the nearest provider.
const { setStatusText } = useStatusBar();
<a onMouseEnter={() => setStatusText(href)} onMouseLeave={() => setStatusText(null)} />
export function useStatusBar() {
return useContext(StatusBarContext);
}
Hook returning the status-bar context, used to read or update the message shown in the bottom status bar (e.g. hovered link URLs, transient flashes).