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

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

/**
 * useSettings - returns the current user settings from redux state
 */
export const useSettings = () => {
  return useSelector(selectUserSettings);
};

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