TypeError: useContext is not a function or its return value is not iterable
I create a model component for reuse. I got "TypeError: useContext is not a function or its return value is not iterable" error. How to solve this error. This code is in single file.