'use strict';

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

var _constants = require('../../constants');

function clearErrorsShowing() {
  return {
    type: _constants.CLEAR_ERRORS_SHOWING,
    payload: {}
  };
}

function showError(key) {
  return {
    type: _constants.SHOW_ERROR,
    payload: { key: key }
  };
}

function hideError(key) {
  return {
    type: _constants.HIDE_ERROR,
    payload: { key: key }
  };
}