geothermie-atlas/redux/resourcesGWWPSlice.js

21 lines
448 B
JavaScript
Raw Normal View History

2023-10-19 09:07:33 +00:00
import { createSlice } from '@reduxjs/toolkit';
const initialState = {
value: [],
};
export const counterSlice = createSlice({
name: 'resourcesGWWP',
initialState,
reducers: {
updateResourcesGWWP: (state, action) => {
state.value = action.payload;
},
},
});
// Action creators are generated for each case reducer function
export const { updateResourcesGWWP } = counterSlice.actions;
export default counterSlice.reducer;