import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["intl"];
import { mapValues } from 'lodash';
import { useLocalize } from './useLocalize';
export function useLocalizeConfig() {
  var localize = useLocalize();
  return function localizeConfig(_ref) {
    var intl = _ref.intl,
        other = _objectWithoutProperties(_ref, _excluded);

    return _objectSpread(_objectSpread({}, mapValues(other, function (value, key) {
      return Array.isArray(value) ? value.map(function (value) {
        return typeof value === 'object' ? localizeConfig(value) : value;
      }) : value;
    })), mapValues(intl, localize));
  };
}
//# sourceMappingURL=useLocalizeConfig_intl_prop_proposal.js.map