PromucFlow_constructor/app/client/src/actions/configsActions.tsx

19 lines
533 B
TypeScript

import { ReduxActionTypes } from "../constants/ReduxActionConstants";
export type EditorConfigIdsType = {
propertyPaneConfigsId?: string;
widgetCardsPaneId?: string;
widgetConfigsId?: string;
};
export const fetchEditorConfigs = (configsIds: EditorConfigIdsType) => {
return {
type: ReduxActionTypes.FETCH_CONFIGS_INIT,
payload: {
propertyPaneConfigsId: configsIds.propertyPaneConfigsId,
widgetCardsPaneId: configsIds.widgetCardsPaneId,
widgetConfigsId: configsIds.widgetConfigsId,
},
};
};