import React, { memo } from 'react' import NumberFormat from 'react-number-format' import TextInput from './TextInput' const NumberInput = memo( ({ name, onChange, onBlur, value, error, suffix, textAlign, width, // lg or sm size, bold, className, decimalPlaces, ...props }) => { return ( { onChange({ target: { id: name, value: values.floatValue, }, }) }} {...props} /> ) }, ) export default NumberInput