mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 11:18:14 +08:00
863f61d908
Co-authored-by: afc163 <afc163@gmail.com>
13 lines
339 B
TypeScript
13 lines
339 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
import type { InputProps } from './Input';
|
|
|
|
export function hasPrefixSuffix(props: {
|
|
prefix?: ReactNode;
|
|
suffix?: ReactNode;
|
|
allowClear?: InputProps['allowClear'];
|
|
showCount?: InputProps['showCount'];
|
|
}) {
|
|
return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
|
|
}
|