import { InputHTMLAttributes, RefObject } from "preact/compat";
interface FormTextBoxProps extends Pick, "placeholder" | "autoComplete" | "className" | "type" | "name" | "pattern" | "title"> {
id?: string;
currentValue?: string;
onChange?(newValue: string): void;
inputRef?: RefObject;
}
export default function FormTextBox({ id, type, name, className, currentValue, onChange, autoComplete, inputRef, placeholder, title, pattern }: FormTextBoxProps) {
return (
onChange?.(e.currentTarget.value)} />
);
}