# useSuggestionProvider

The suggestion provider, or `undefined` when the host supplies none. The
search pill suggests places as the person types only when it exists, so a
host without one keeps submit-only search. Nothing is requested until the
person has typed.

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

## Signature

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

## Returns

`SuggestionProvider | undefined`

## See also

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

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