kitchen-simulator
Version:
It is a kitchen simulator (self-contained micro-frontend).
12 lines • 403 B
JavaScript
import { Area } from "../class/export";
import { SELECT_AREA, SET_FLOOR_STYLES } from "../constants";
export default function (state, action) {
switch (action.type) {
case SELECT_AREA:
return Area.select(state, action.layerID, action.areaID).updatedState;
case SET_FLOOR_STYLES:
return Area.setFloorStyles(state, action.texture).updatedState;
default:
return state;
}
}