UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

9 lines • 305 B
/** * Since Select, TreeSelect, Cascader is same Select like component. * We just use same hook to handle this logic. * * If `suffix` is not equal to `null`, always show it. */ export default function useShowArrow(suffix, showArrow) { return showArrow !== undefined ? showArrow : suffix !== null; }