# Function: usePromo()

```typescript
export function usePromo(slug: string)
```

Defined in: [hooks/usePromo.ts:18](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/hooks/usePromo.ts#L18)

## Parameters

### slug

`string`

## Returns

`object`

### error

> **error**: `boolean`

### loading

> **loading**: `boolean`

### present

> **present**: (`sync?`) => `Promise`\<`any`\>

#### Parameters

##### sync?

(`transaction`) => `unknown`

#### Returns

`Promise`\<`any`\>

### promo

> **promo**: [`ResolvedPromo`](https://plandalf.com/docs/packages/react/referenced-types/ResolvedPromo) \| `null`

### remaining

> **remaining**: `number` \| `null`

### spotsRemaining

> **spotsRemaining**: `number` \| `null`

### tier

> **tier**: \{\[`key`: `string`\]: `unknown`; `label`: `string`; \} \| `null`

Source: https://plandalf.com/docs/packages/react/functions/usePromo
