PromoCursed/node_modules/antd/lib/cascader/hooks/useCheckable.js
2024-08-20 23:25:37 +04:00

14 lines
494 B
JavaScript

"use strict";
"use client";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = useCheckable;
var React = _interopRequireWildcard(require("react"));
function useCheckable(cascaderPrefixCls, multiple) {
return React.useMemo(() => multiple ? /*#__PURE__*/React.createElement("span", {
className: `${cascaderPrefixCls}-checkbox-inner`
}) : false, [multiple]);
}