var _createReducer;
import { createReducer } from "redux-act";
import createAction from "./utils/createMetaAction";

// ------------------------------------
// Actions
// ------------------------------------
export var changeLabelLineIntensity = createAction("changeLabelLineIntensity");
var newVal = window.localStorage.getItem("labelLineIntensity");

// ------------------------------------
// Reducer
// ------------------------------------
export default createReducer((_createReducer = {}, _createReducer[changeLabelLineIntensity] = function (state, payload) {
  localStorage.setItem("labelLineIntensity", payload);
  return payload;
}, _createReducer), newVal ? parseFloat(newVal) : 0.1 //  0.1 (low) || 0.4 (med) || 0.7 (high) || 1.0 (full)
);