interface FormTextBoxProps { name: string; currentValue?: string; className?: string; onChange?(newValue: string): void; } export default function FormTextBox({ name, className, currentValue, onChange }: FormTextBoxProps) { return ( onChange?.(e.currentTarget.value)} /> ); }