vn-verdnaturachat/app/selectors/login.js

9 lines
170 B
JavaScript

import { createSelector } from 'reselect';
const getUser = state => state.login.user || {};
export const getUserSelector = createSelector(
[getUser],
user => user
);