/*
 * File: useProfile.ts
 * Description: Custom hook for accessing user profile from redux
 * Design & Developed by Tech4Biz Solutions
 * Copyright (c) Spurrin Innovations. All rights reserved.
 */

import { useSelector } from 'react-redux';
import { selectUserProfile } from '../redux/profileSelectors';

/**
 * useProfile - returns the current user profile from redux state
 */
export const useProfile = () => {
  return useSelector(selectUserProfile);
};

/*
 * End of File: useProfile.ts
 * Design & Developed by Tech4Biz Solutions
 * Copyright (c) Spurrin Innovations. All rights reserved.
 */ 