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

import '@vue/composition-api';
import { useConfig } from '../components/config-provider/useConfig.js';
import '../components/config-provider/context.js';
import 'lodash';
import '../_chunks/dep-def4c2ce.js';

function useGlobalIcon(tdIcon) {
  const {
    global
  } = 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;
}

export { useGlobalIcon as default, useGlobalIcon };
//# sourceMappingURL=use-global-icon.js.map
