import type { BaseElementProps } from './types'; import type { InputNumberProps as AntInputNumberProps } from 'antd'; import { Form, InputNumber as AntInputNumber } from 'antd'; import type { FC } from 'react'; const { Item: FormItem } = Form; type InputNumberProps = AntInputNumberProps; function InputNumber({ setValue, status, isValid, help, ...props }: BaseElementProps) { function handleChange(value: number | null) { if (value) { setValue(value); } else { setValue(0); } } return ( ); } export default InputNumber as FC;