Invalid hook call. Hooks can only be called inside of the body of a function component show in react chat app

Issues as like


manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
**More Vital Issue/User Msg:**
react-dom.development.js:20085 The above error occurred in the <WithStyles(ForwardRef(AppBar))> component:

Folder Structure
React Folder Structure