"use strict";

exports.__esModule = true;
exports.toggleShowGCContent = exports["default"] = void 0;
var _reduxAct = require("redux-act");
var _createMetaAction = _interopRequireDefault(require("./utils/createMetaAction"));
var _createReducer;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
// import createReducer from "./utils/createMergedDefaultStateReducer";

// ------------------------------------
// Actions
// ------------------------------------
var toggleShowGCContent = (0, _createMetaAction["default"])("toggleShowGCContent");

// ------------------------------------
// Reducer
// ------------------------------------
exports.toggleShowGCContent = toggleShowGCContent;
var _default = (0, _reduxAct.createReducer)((_createReducer = {}, _createReducer[toggleShowGCContent] = function (state, val) {
  localStorage.setItem("showGCContent", val);
  return val;
}, _createReducer), window.localStorage.getItem("showGCContent"));
exports["default"] = _default;