ant-design/components/cascader/hooks/useCheckable.tsx

9 lines
257 B
TypeScript
Raw Normal View History

import * as React from 'react';
export default function useCheckable(cascaderPrefixCls: string, multiple?: boolean) {
return React.useMemo(
() => (multiple ? <span className={`${cascaderPrefixCls}-checkbox-inner`} /> : false),
[multiple],
);
}