import type { HTMLAttributes } from 'react'; export function TextInput({ value, onChange, placeholder, inputMode, }: { value: string; onChange: (value: string) => void; placeholder?: string; inputMode?: HTMLAttributes['inputMode']; }) { return ( onChange(event.target.value)} placeholder={placeholder} value={value} /> ); }