UNPKG

@collectionspace/cspace-public-browser

Version:
19 lines (18 loc) 720 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setSearchEntryFormParam = exports.applySearchEntryForm = void 0; var _searchActions = require("./searchActions"); var _reducers = require("../reducers"); var _actionCodes = require("../constants/actionCodes"); const setSearchEntryFormParam = (id, value) => ({ type: _actionCodes.SET_SEARCH_ENTRY_FORM_PARAM, payload: value, meta: { id } }); exports.setSearchEntryFormParam = setSearchEntryFormParam; const applySearchEntryForm = history => (dispatch, getState) => dispatch((0, _searchActions.openSearch)(history, (0, _reducers.getSearchEntryFormParams)(getState()))); exports.applySearchEntryForm = applySearchEntryForm;