/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

import './useConfig.js';
import { useConfig } from '../components/config-provider/useConfig.js';
import '@vue/composition-api';
import '../components/config-provider/context.js';
import 'lodash/merge';
import 'lodash/mergeWith';
import '../chunks/zh_CN.js';
import '../components/config-provider/type.js';

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

export { useGlobalIcon as default, useGlobalIcon };
//# sourceMappingURL=useGlobalIcon.js.map
