import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
const usePrefixCls = (tag, props)=>{
    const { getPrefixCls } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE_antd__.ConfigProvider.ConfigContext) || {};
    if ('ConfigContext' in __WEBPACK_EXTERNAL_MODULE_antd__.ConfigProvider) return (null == getPrefixCls ? void 0 : getPrefixCls(tag, null == props ? void 0 : props.prefixCls)) || '';
    {
        var _props_prefixCls;
        const prefix = null !== (_props_prefixCls = null == props ? void 0 : props.prefixCls) && void 0 !== _props_prefixCls ? _props_prefixCls : 'ant-';
        return "".concat(prefix).concat(null != tag ? tag : '');
    }
};
export { usePrefixCls };
