'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getKeyword = getKeyword;

var _immutable = require('immutable');

var _immutable2 = _interopRequireDefault(_immutable);

var _quickSearch = require('../actions/quickSearch');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = (state = _immutable2.default.Map(), action) => {
  switch (action.type) {
    case _quickSearch.SET_QUICK_SEARCH_KEYWORD:
      return state.set('keyword', action.payload);
    default:
      return state;
  }
};

function getKeyword(state) {
  return state.get('keyword');
}