amis-rpc-design/node_modules/rc-picker/es/utils/getClearIcon.js
2023-10-07 19:42:30 +08:00

8 lines
370 B
JavaScript

import _typeof from "@babel/runtime/helpers/esm/typeof";
import React from "react";
export function getClearIcon(prefixCls, allowClear, clearIcon) {
var mergedClearIcon = _typeof(allowClear) === "object" ? allowClear.clearIcon : clearIcon;
return mergedClearIcon || /*#__PURE__*/React.createElement("span", {
className: "".concat(prefixCls, "-clear-btn")
});
}