mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 15:46:10 +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],
|
||
|
);
|
||
|
}
|