ant-design/components/select/useShowArrow.ts

10 lines
267 B
TypeScript
Raw Normal View History

/**
* 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?: boolean) {
return showArrow ?? true;
}