File size: 339 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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);
}
|