import { InputHTMLAttributes, RefObject } from "preact/compat"; interface FormTextBoxProps extends Pick, "placeholder" | "autoComplete" | "className" | "type" | "name" | "pattern" | "title" | "style"> { 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, style }: FormTextBoxProps) { return ( onChange?.(e.currentTarget.value)} style={style} /> ); }