text: import { useCallback } from 'react';
  import { useDispatch, useSelector } from 'react-redux';
  
  import { USER_SET } from '@shared/store';
  
  export const useAppHooks = () => {
    const dispatch = useDispatch();
    const { user } = useSelector(({ app }) => app);
  
    return {
      setUser: useCallback((user) => dispatch({ payload: { user }, type: USER_SET }), [dispatch]),
      user,
    };
  };
  