"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var marks = function marks() {
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  var action = arguments.length > 1 ? arguments[1] : undefined;

  switch (action.type) {
    case 'CHANGE_MARKS':
      if (Array.isArray(action.marks)) {
        return action.marks;
      } else {
        throw new Error('marks must be an array');
      }

    default:
      return state;
  }
};

var _default = marks;
exports["default"] = _default;
//# sourceMappingURL=marks.js.map