/**
 * ldesign v0.2.2
 * (c) 2022年9月20日 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(ldIcon) {
  var _useConfig = components_configProvider_useConfig.useConfig("icon"),
      global = _useConfig.global;

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

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

exports.useGlobalIcon = useGlobalIcon;
//# sourceMappingURL=use-global-icon.js.map
