/**
 * tdesign v0.46.4
 * (c) 2022 tdesign
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

require('@vue/composition-api');
var configProvider_useConfig = require('../config-provider/useConfig.js');
require('../config-provider/context.js');
require('lodash/merge');
require('lodash/mergeWith');
require('../_common/js/global-config/default-config.js');
require('../_common/js/global-config/locale/zh_CN.js');

function useGlobalIcon(tdIcon) {
  var _useConfig = configProvider_useConfig.useConfig("icon"),
      global = _useConfig.global;

  var resultIcon = {};
  Object.keys(tdIcon).forEach(function (key) {
    var _global$value;

    resultIcon[key] = ((_global$value = global.value) === null || _global$value === void 0 ? void 0 : _global$value[key]) || tdIcon[key];
  });
  return resultIcon;
}

exports.useGlobalIcon = useGlobalIcon;
//# sourceMappingURL=useGlobalIcon.js.map
