import { Action_Types } from "./value.types"
const Initial_State = {
Test_Value: 0
}
export const Value_Reducer = (state = Initial_State, action) => {
const { type, payload } = action
switch (type) {
case Action_Types.Set_Test_Value:
return {
...state,
Test_Value: payload
}
default:
return state
}
}
import { Action_Types } from "./value.types"
const Initial_State = {
Test_Value: 0
}
export const Value_Reducer = (state = Initial_State, action) => {
const { type, payload } = action
switch (type) {
case Action_Types.Set_Test_Value:
return {
...state,
Test_Value: payload
}
default:
return state
}
}