PromucFlow_constructor/app/client/src/selectors/ui.tsx
Aman Agarwal 9894a6522c
feat: added datasource icon on left of entity name, revamped name editor (#10821)
* feat: added datasource icon on left of entity name, revamped name editor

* fix: updated the hardcoded message strings to use message.ts

* fix: types of variables
2022-02-09 17:11:47 +05:30

20 lines
588 B
TypeScript

import { AppState } from "reducers";
export const getSelectedWidget = (state: AppState) =>
state.ui.widgetDragResize.lastSelectedWidget;
export const getSelectedWidgets = (state: AppState) =>
state.ui.widgetDragResize.selectedWidgets;
/**
* Selector to use id and provide the status of saving an API.
*/
export const getIsSavingForApiName = (state: AppState, id: string) =>
state.ui.apiName.isSaving[id];
/**
* Selector to use id and provide the status of error in an API.
*/
export const getErrorForApiName = (state: AppState, id: string) =>
state.ui.apiName.errors[id];