import { reactive } from 'vue';
import './context/index.mjs';
import { defaultIconPrefixCls } from './context/context.mjs';

const defaultPrefixCls = "ant";
const globalConfigForApi = reactive({});
function getGlobalIconPrefixCls() {
  return globalConfigForApi.iconPrefixCls || defaultIconPrefixCls;
}
function getGlobalPrefixCls() {
  return globalConfigForApi.prefixCls || defaultPrefixCls;
}
function globalConfig() {
  return {
    getPrefixCls: (suffixCls, customizePrefixCls) => {
      if (customizePrefixCls)
        return customizePrefixCls;
      return suffixCls ? `${getGlobalPrefixCls()}-${suffixCls}` : getGlobalPrefixCls();
    },
    getIconPrefixCls: getGlobalIconPrefixCls,
    getRootPrefixCls: () => {
      if (globalConfigForApi.prefixCls)
        return globalConfigForApi.prefixCls;
      return getGlobalPrefixCls();
    }
  };
}

export { defaultPrefixCls, getGlobalIconPrefixCls, getGlobalPrefixCls, globalConfig, globalConfigForApi };
//# sourceMappingURL=config.mjs.map
