* 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
15 lines
417 B
TypeScript
15 lines
417 B
TypeScript
import { createSelector } from "reselect";
|
|
|
|
import { AppState } from "@appsmith/reducers";
|
|
import { RecentEntity } from "components/editorComponents/GlobalSearch/utils";
|
|
|
|
export const getRecentEntities = (state: AppState) =>
|
|
state.ui.globalSearch.recentEntities;
|
|
|
|
export const getRecentEntityIds = createSelector(
|
|
getRecentEntities,
|
|
(entities: RecentEntity[]) => {
|
|
return entities.map((r) => r.id);
|
|
},
|
|
);
|