import { createStore } from 'redux';
import rootReducer from './reducers';

const defaultState = {
  searchState: { searchValue: '5', searchType: 'guid' },
  xmlData: []
};

const devToolsKey = '__REDUX_DEVTOOLS_EXTENSION__';
const enhancer = window[devToolsKey] ? window[devToolsKey]()(createStore) : createStore;
export const walleStore: any = enhancer(rootReducer, defaultState);
