I\'m trying to convert a React component to React typescript, but useContext and useReducer is causing error in my code.
the only differences are some of the interfac