PromoCursed/node_modules/antd/lib/cascader/hooks/useCheckable.js

14 lines
494 B
JavaScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
"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]);
}