// src/components/TextField/adornmentWithClassName.ts
import classNames from "classnames/dedupe";
import { cloneElement } from "react";
var adornmentWithClassName = (component, validationClasses, className) => {
  if (!component) return null;
  const typedComponent = component;
  return cloneElement(typedComponent, {
    className: classNames(
      typedComponent.props.className,
      validationClasses,
      className
    )
  });
};

export {
  adornmentWithClassName
};
//# sourceMappingURL=chunk-I6CFRGID.js.map
