mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 04:18:28 +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],
|
||
|
);
|
||
|
}
|