# 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

```ts
import { useFocusReturn } from "@mapcairn/map";
 
function useFocusReturn(): (name: FocusName | null) => void;
```

## Returns

`(name: FocusName | null) => void`

## See also

- [`FocusName`](https://docs.mapcairn.com/api/map/FocusName.md)

Source: [packages/map/src/chrome/focusRegistry.tsx:115](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/chrome/focusRegistry.tsx#L115)
