import clsx from 'clsx';
import { Paragraph } from '../../Paragraph';
export function RenderErrorOrHelperText({ error, helperText, disabled, className, }) {
    if (!error && !helperText) {
        return null;
    }
    return (<Paragraph className={clsx('pt-1.5', error && !disabled
            ? 'text-error dark:text-error-dark'
            : disabled
                ? 'text-gray-3'
                : 'text-gray-1', className)} size="body-2">
      {error && !disabled ? error : helperText}
    </Paragraph>);
}
//# sourceMappingURL=RenderErrorOrHelperText.jsx.map