где сделать функции крючков
Always make the hooks function like const dispatcher = useDispatcher();
in the functional Component or the React Custom hooks
don't make it in the only function of the js file so it did not work here.
Coding is fun