UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

22 lines 757 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Actions = require("../../mapping/actions"); const initialMapFlagsState = { trafficShowing: false, }; exports.mapFlagsReducer = (state = initialMapFlagsState, action) => { switch (action.type) { case Actions.SHOW_TRAFFIC: { return showTraffic(state, action); } case Actions.HIDE_TRAFFIC: { return hideTraffic(state, action); } default: { return state; } } }; const showTraffic = (state, action) => (Object.assign({}, state, { trafficShowing: true })); const hideTraffic = (state, action) => (Object.assign({}, state, { trafficShowing: false })); //# sourceMappingURL=flags.js.map