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

const defaultPrefixCls = "ant";
const globalConfigForApi = reactive({});
function getGlobalIconPrefixCls() {
  return globalConfigForApi.iconPrefixCls || defaultIconPrefixCls;
}
function getGlobalPrefixCls() {
  return globalConfigForApi.prefixCls || defaultPrefixCls;
}
const globalConfig = () => ({
  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
