# linkInteractionsToScreenshot

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/utils/ui-interaction-detector.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/utils/ui-interaction-detector.ts#L416)

Link UI interactions to screenshots

Takes a screenshot URL and a list of interactions, and determines
which interactions are available on that screenshot based on the
current state detected from the URL.

## Signature

```ts
function linkInteractionsToScreenshot(_screenshotUrl: string, interactions: UIInteraction[], currentState: string): UIInteraction[]
```

## Parameters

| Name | Type |
|---|---|
| `_screenshotUrl` | `string` |
| `interactions` | `UIInteraction[]` |
| `currentState` | `string` |

**Returns:** `UIInteraction[]`
