import CalendarOutlined from '@ant-design/icons-vue/CalendarOutlined';
import { isValidElement } from '../_util/props-util';
import { cloneElement } from '../_util/vnode';
import classNames from 'classnames';
const InputIcon = (_, { attrs }) => {
const { suffixIcon, prefixCls } = attrs;
return (
(suffixIcon && isValidElement(suffixIcon) ? (
cloneElement(suffixIcon, {
class: classNames({
[suffixIcon.props?.class]: suffixIcon.props.class,
[`${prefixCls}-picker-icon`]: true,
}),
})
) : (
{suffixIcon}
)) ||
);
};
InputIcon.inheritAttrs = false;
export default InputIcon;