# useFileOpener

The file opener, which asks the person for a file and reads it in the
browser, or `undefined` when the host supplies none. Shape import needs it,
so a host without one gets no Import control.

This is a function exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import { useFileOpener } from "@mapcairn/map";
 
function useFileOpener(): FileOpener | undefined;
```

## Returns

`FileOpener | undefined`

## See also

- [`FileOpener`](https://docs.mapcairn.com/api/core/FileOpener.md)

Source: [packages/map/src/services/hooks.ts:94](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/services/hooks.ts#L94)
