17 lines
320 B
JavaScript
17 lines
320 B
JavaScript
import { createSelector } from 'reselect';
|
|
|
|
|
|
export function isAuthenticated(state) {
|
|
return getAuth(state).authenticated;
|
|
}
|
|
|
|
|
|
//=====================================
|
|
// MEMOIZED SELECTORS
|
|
//-------------------------------------
|
|
|
|
export const getAuth = createSelector(
|
|
state => state.auth,
|
|
auth => auth.toJS()
|
|
);
|