PromucFlow_constructor/app/client/src/selectors/canvasSelectors.ts
Preet Sidhu 6a8806f629
feat: Add widget responsiveness and conversion algorithm (#21386)
## Description

QA branch for mobile responsiveness

---------

Co-authored-by: Aswath K <aswath@appsmith.com>
Co-authored-by: Arsalan Yaldram <arsalanyaldram0211@outlook.com>
Co-authored-by: Aswath K <aswath.sana@gmail.com>
Co-authored-by: Ashok Kumar M <35134347+marks0351@users.noreply.github.com>
Co-authored-by: rahulramesha <rahul@appsmith.com>
2023-04-07 09:51:35 -04:00

16 lines
566 B
TypeScript

import { AppPositioningTypes } from "reducers/entityReducers/pageListReducer";
import { createSelector } from "reselect";
import { getCurrentAppPositioningType } from "./editorSelectors";
import type { AppState } from "@appsmith/reducers";
export const getIsDraggingForSelection = (state: AppState) => {
return state.ui.canvasSelection.isDraggingForSelection;
};
export const getIsAutoLayout = createSelector(
getCurrentAppPositioningType,
(appPositionType: AppPositioningTypes): boolean => {
return appPositionType === AppPositioningTypes.AUTO;
},
);