{
inputRef.current?.focus();
}}
>
{!!icon &&
{icon}
}
{
setInputFocus(true);
props.onFocus?.(e);
}}
onBlur={(e) => {
setInputFocus(false);
props.onBlur?.(e);
}}
onChange={(e) => {
setValue(e.target.value);
props.onChange?.(e);
}}
ref={(inputTextRef) => {
if (ref) {
if (typeof ref === "function") {
ref(inputTextRef);
} else {
ref.current = inputTextRef;
}
}
inputRef.current = inputTextRef;
}}
/>
{!!rightIcon && (
{rightIcon}
)}