UNPKG

@rc-component/picker

Version:
8 lines 632 B
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } 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") }); }