UNPKG

lml-main

Version:

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

21 lines 661 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Actions = require("../../google/actions"); exports.initialGoogleState = { mapsApiLoaded: false, mapsAuthError: false, }; exports.googleReducer = (state = exports.initialGoogleState, action) => { switch (action.type) { case Actions.MAPS_API_LOADED: { return Object.assign({}, state, { mapsApiLoaded: true }); } case Actions.MAPS_AUTHENTICATION_ERROR: { return Object.assign({}, state, { mapsAuthError: true }); } default: { return state; } } }; //# sourceMappingURL=google.js.map