Created the base design

This commit is contained in:
Myx
2021-12-16 23:58:01 +01:00
parent e78df802f9
commit b5b8270906
51 changed files with 15870 additions and 282 deletions

View File

@@ -0,0 +1,14 @@
import { EGotobedActions, GotobedActions } from "./gotobed.actions";
import { GotobedState, initialGotoBedState } from "./gotobed.state";
export function gotobedReducer(state = initialGotoBedState, action: GotobedActions): GotobedState {
switch (action.type) {
case EGotobedActions.SendCommandChanged:
return {
...state,
command: action.payload,
};
default:
return state;
}
}