20 lines
769 B
TypeScript
20 lines
769 B
TypeScript
/*
|
|
* File: authSelectors.ts
|
|
* Description: Selectors for Auth redux state
|
|
* Design & Developed by Tech4Biz Solutions
|
|
* Copyright (c) Spurrin Innovations. All rights reserved.
|
|
*/
|
|
|
|
import { RootState } from '../../../../app/redux/rootReducer';
|
|
|
|
export const selectUser = (state: RootState) => state.auth.user;
|
|
export const selectAuthLoading = (state: RootState) => state.auth.loading;
|
|
export const selectAuthError = (state: RootState) => state.auth.error;
|
|
export const selectIsAuthenticated = (state: RootState) => state.auth.isAuthenticated;
|
|
export const selectHospitals = (state: RootState) => state.hospital.hospitals;
|
|
|
|
/*
|
|
* End of File: authSelectors.ts
|
|
* Design & Developed by Tech4Biz Solutions
|
|
* Copyright (c) Spurrin Innovations. All rights reserved.
|
|
*/
|