2021-05-18 18:29:39 +00:00
|
|
|
import { AppState } from "reducers";
|
|
|
|
|
|
|
|
|
|
export const getSelectedWidget = (state: AppState) =>
|
|
|
|
|
state.ui.widgetDragResize.lastSelectedWidget;
|
|
|
|
|
|
|
|
|
|
export const getSelectedWidgets = (state: AppState) =>
|
|
|
|
|
state.ui.widgetDragResize.selectedWidgets;
|
2022-02-09 11:41:47 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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];
|