mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
10 lines
267 B
TypeScript
10 lines
267 B
TypeScript
|
/**
|
||
|
* 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;
|
||
|
}
|