useFocusReturn
Returns restore(name), which focuses the registered control, or the map
region when the name is null or the control is no longer in the document.
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { useFocusReturn } from "@mapcairn/map";
function useFocusReturn(): (name: FocusName | null) => void;
Returns
(name: FocusName | null) => void