/**
 * ldesign v0.2.2
 * (c) 2022年9月20日 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-a0f2090c.js';

function useGlobalIcon(ldIcon) {
  var _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;
}

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