// #region Local Imports import { ActionConsts } from "@Definitions"; // #endregion Local Imports // #region Interface Imports import { IAction, {{interfaceName}} } from "@Interfaces"; // #endregion Interface Imports const INITIAL_STATE: {{interfaceName}}.IStateProps = { }; type IMapPayload = {{interfaceName}}.Actions.IMapPayload; export const {{fileName}}Reducer = (state = INITIAL_STATE, action: IAction) => { switch (action.type) { case ActionConsts.{{fileName}}.SetReducer: return { ...state, ...action.payload }; case ActionConsts.{{fileName}}.ResetReducer: return INITIAL_STATE; default: return state; } };