Invalid hook call. Hooks can only be called inside of the body of a function component. · Issue #7626 · vercel/next.js

Bug report Describe the bug Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: You might have mismatching ve...