PromucFlow_constructor/app/client/src/selectors/usersSelectors.tsx

9 lines
345 B
TypeScript
Raw Normal View History

import { AppState } from "reducers";
import { User } from "constants/userConstants";
export const getCurrentUser = (state: AppState): User | undefined =>
state.ui.users.currentUser;
export const getUserAuthError = (state: AppState): string =>
state.ui.users.error;
export const getUsers = (state: AppState): User[] => state.ui.users.users;