import { forwardRef } from "react"; import { getAssetPath, ASSETS } from "../../../../lib/assetUtils"; import type { TextInputViewProps } from "./TextInput.types"; export const TextInputView = forwardRef( ( { inputId, labelId, label, placeholder, value, name, type, disabled, error: _error, className: _className, containerClasses, labelClasses, inputClasses, borderRadius, handleChange, handleFocus, handleBlur, handleMouseDown, showHelpIcon = true, inputWrapperClasses = "relative", focusRingClasses = "", textHint = false, formHeader = true, maxLength, }, ref, ) => { return (
{formHeader && label && (
{showHelpIcon && (
{/* eslint-disable-next-line @next/next/no-img-element -- icon asset */} Help
)}
)}
{focusRingClasses && ( {textHint && (

{typeof textHint === "string" ? textHint : "Hint text here"}

)}
); }, ); TextInputView.displayName = "TextInputView";