"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getSearchInputLeftPadding = exports.getSearchInputFocusedLeftPadding = void 0;

/**
 * No icon on the left - it would be on the right
 */
var getSearchInputFocusedLeftPadding = function getSearchInputFocusedLeftPadding(_ref) {
  var large = _ref.large;
  return large ? '30px' : '20px';
};
/**
 * Accommodates the icon
 */


exports.getSearchInputFocusedLeftPadding = getSearchInputFocusedLeftPadding;

var getSearchInputLeftPadding = function getSearchInputLeftPadding(props) {
  var value = props.value,
      large = props.large;
  if (value) return getSearchInputFocusedLeftPadding(props);
  return large ? '50px' : '40px';
};

exports.getSearchInputLeftPadding = getSearchInputLeftPadding;