* chore: code split sagas and reducers index file * fix: update imports * chore: remove acl reducers file on ce * fix: code split reducers properly * chore: remove unnecessary import * chore: split root sagas file
18 lines
763 B
TypeScript
18 lines
763 B
TypeScript
import { AppState } from "@appsmith/reducers";
|
|
import { User } from "constants/userConstants";
|
|
import { PropertyPanePositionConfig } from "reducers/uiReducers/usersReducer";
|
|
|
|
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;
|
|
export const getProppanePreference = (
|
|
state: AppState,
|
|
): PropertyPanePositionConfig | undefined => state.ui.users.propPanePreferences;
|
|
export const getFeatureFlagsFetched = (state: AppState) =>
|
|
state.ui.users.featureFlag.isFetched;
|
|
|
|
export const selectFeatureFlags = (state: AppState) =>
|
|
state.ui.users.featureFlag.data;
|