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