⚠️⚠️ Please do not include any proprietary code in the issue. ⚠️⚠️ Codemod: next/13/replace-next-head1. Code before transformation (Input for codemod) ```typescript ``` 2. Expected code after transformation (Desired output of codemod) ```typescript // paste code here ``` 3. Faulty code obtained after running the current version of the codemod (Actual output of codemod) ```typescript const { t, isLocaleReady } = useLocale(); ``` Additional contextMetadata dependencies such as react hooks, cannot exist outside of react component.
Codemod: next/13/replace-next-head
1. Code before transformation (Input for codemod)
```typescript ```
2. Expected code after transformation (Desired output of codemod)
```typescript // paste code here ```
3. Faulty code obtained after running the current version of the codemod (Actual output of codemod)
```typescript const { t, isLocaleReady } = useLocale(); ```
Additional context
Metadata dependencies such as react hooks, cannot exist outside of react component.