# Function: useSpaces()

```ts
function useSpaces(options?): SpacesState;
```

Defined in: [packages/react/src/use-spaces.ts:31](https://github.com/leifriksheim/minca/blob/main/react/src/use-spaces.ts#L31)

The account's spaces, kept current — including ones joined on another device
of the account, which the account registry brings here.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `options?` | [`SpacesOptions`](https://minca.dev/api/react/interfaces/SpacesOptions.md) |

## Returns

[`SpacesState`](https://minca.dev/api/react/interfaces/SpacesState.md)
