import React from 'react' ; import { AmountInputProps } from '@burner-wallet/types' ; const AmountInput = ( { onChange , disabled , value , max } ) => ( < div > < input type = "number" onChange = { ( e ) => onChange ( e . target . value , false ) } disabled = { disabled } value = { value } / > { max && ( < button onClick = { ( ) => onChange ( value , true ) } > Max < /button>)} < /div>); export default AmountInput ;