

Custom hook that manages and navigates between steps in a multi-step process.

## Usage [#usage]

```tsx
import { useStep } from "@tilt-legal/cubitt-components/utilities/hooks";

const [currentStep, { goToNextStep, goToPrevStep, reset, canGoToNextStep, canGoToPrevStep, setStep }] = useStep(3);
// Access and use the current step and provided helper functions.
```

## API [#api]

### Signature [#signature]

```ts
declare function useStep(maxStep: number): [number, UseStepActions];
```

### Parameters [#parameters]

| Parameter | Type     | Description                      | Default |
| --------- | -------- | -------------------------------- | ------- |
| `maxStep` | `number` | The maximum step in the process. | -       |

### Return Value [#return-value]

| Value    | Type                       | Description                                                                     |
| -------- | -------------------------- | ------------------------------------------------------------------------------- |
| `return` | `[number, UseStepActions]` | An tuple containing the current step and helper functions for navigating steps. |
