# extractHooksFromPath

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/utils/ast-helpers.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/utils/ast-helpers.ts#L419)

Extract hooks used within a function path

## Signature

```ts
function extractHooksFromPath(path: NodePath): HookInfo[]
```

## Parameters

| Name | Type |
|---|---|
| `path` | `NodePath` |

**Returns:** `HookInfo[]`
