Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import lunr from "lunr";
import stemmerSupport from "lunr-languages/lunr.stemmer.support.js";
import fr from "lunr-languages/lunr.fr.js";
import { createStore } from "redux";
import airtableConstants from "./utils/hardcoded_strings";
stemmerSupport(lunr);
fr(lunr);
const initialState = {
enIdx: {},
frIdx: {},
searchString: "",
selectedNeeds: {},
cookiesDisabled: false,
language: "",
betaFeedback: ""
};
airtableConstants.tableNames.forEach(tableName => {
initialState[tableName] = [];
});
// REDUCERS
export const reducer = (state = initialState, action) => {