mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
9 lines
257 B
TypeScript
9 lines
257 B
TypeScript
|
import * as React from 'react';
|
||
|
|
||
|
export default function useCheckable(cascaderPrefixCls: string, multiple?: boolean) {
|
||
|
return React.useMemo(
|
||
|
() => (multiple ? <span className={`${cascaderPrefixCls}-checkbox-inner`} /> : false),
|
||
|
[multiple],
|
||
|
);
|
||
|
}
|