antd
Version:
An enterprise-class UI design language and React components implementation
15 lines (14 loc) • 397 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = useShowArrow;
/**
* Since Select, TreeSelect, Cascader is same Select like component.
* We just use same hook to handle this logic.
*
* If `showArrow` not configured, always show it.
*/
function useShowArrow(showArrow) {
return showArrow !== null && showArrow !== void 0 ? showArrow : true;
}