import React from 'react';
import { ConfigProvider } from 'antd';
import { ConfigContext } from "../../config-provider/context";
var useConfig = function useConfig(target) {
  return /*#__PURE__*/React.createElement(ConfigContext.Consumer, null, function (values) {
    return /*#__PURE__*/React.createElement(ConfigProvider, values, target);
  });
};
export default useConfig;