/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 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/merge');
require('lodash/mergeWith');
require('../chunks/zh_CN.js');

function useGlobalIcon(tdIcon) {
  const {
    global
  } = components_configProvider_useConfig.useConfig("icon");
  const resultIcon = {};
  Object.keys(tdIcon).forEach(key => {
    resultIcon[key] = global.value?.[key] || tdIcon[key];
  });
  return resultIcon;
}

exports["default"] = useGlobalIcon;
exports.useGlobalIcon = useGlobalIcon;
//# sourceMappingURL=useGlobalIcon.js.map
