import { ClearOutlined } from '@ant-design/icons'; import { Button, Col, InputNumber, Row } from 'antd'; import React, { useState } from 'react'; import { TypeInputProps } from './TypeInput'; export const DecimalInput = ({ property, defaultValue, set, extraProps, isPrimary }: TypeInputProps) => { const [value, setValue] = useState(defaultValue as string | null); const onChange = (val: string) => { setValue(val); set(val); }; return ( {property.optional ? ( ) : null} ); };