antd
Version:
An enterprise-class UI design language and React components implementation
9 lines • 300 B
JavaScript
/**
* 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.
*/
export default function useShowArrow(showArrow) {
return showArrow !== null && showArrow !== void 0 ? showArrow : true;
}