mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +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;
|
||
|
}
|