# Function: useCollections()

```ts
function useCollections(spaceId): readonly NodeCollection[];
```

Defined in: [packages/react/src/use-space.ts:44](https://github.com/leifriksheim/minca/blob/main/react/src/use-space.ts#L44)

What the space holds: its kinds of things, with their schemas and counts.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `spaceId` | `string` |

## Returns

readonly [`NodeCollection`](https://minca.dev/api/core/interfaces/NodeCollection.md)[]
