import { createSliceHooks } from '@looker/redux';
import { createSlice } from '@reduxjs/toolkit';
import { saga } from './sagas';
export var defaultLodesState = {
  examples: undefined,
  declarations: undefined
};
export var lodesSlice = createSlice({
  name: 'lodes',
  initialState: defaultLodesState,
  reducers: {
    initLodesAction(_state, _action) {},

    initLodesSuccessAction(state, action) {
      state.examples = action.payload.examples;
      state.declarations = action.payload.declarations;
    },

    initLodesFailureAction(state, action) {
      state.error = action.payload;
    }

  }
});
export var lodeActions = lodesSlice.actions;
export var {
  useActions: useLodeActions,
  useStoreState: useLodesStoreState
} = createSliceHooks(lodesSlice, saga);
//# sourceMappingURL=slice.js.map