"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ConfigContext = exports.getPrefixClassName = void 0;

var _react = require("react");

var getPrefixClassName = function getPrefixClassName(suffixCls, customPrefix, rootPrefixCls) {
  if (customPrefix) {
    return customPrefix;
  }

  var rootCls = rootPrefixCls || 'klein';
  return suffixCls ? "".concat(rootCls, "-").concat(suffixCls) : "".concat(rootCls);
};

exports.getPrefixClassName = getPrefixClassName;
var ConfigContext = /*#__PURE__*/(0, _react.createContext)({
  getPrefixClassName: getPrefixClassName,
  size: 'medium',
  direction: 'ltr'
});
exports.ConfigContext = ConfigContext;