/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

'use strict';

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

require('@vue/composition-api');
var components_configProvider_useConfig = require('../components/config-provider/useConfig.js');
require('../components/config-provider/context.js');
require('lodash');
require('../chunks/zh_CN.js');

function useGlobalIcon(tdIcon) {
  const {
    global
  } = components_configProvider_useConfig.useConfig("icon");
  const resultIcon = {};
  Object.keys(tdIcon).forEach(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["default"] = useGlobalIcon;
exports.useGlobalIcon = useGlobalIcon;
//# sourceMappingURL=use-global-icon.js.map
