import { Form } from 'antd' ; import { CurrencyOption } from 'models/currency-option' ; import { BigNumber } from 'ethers' ; import BudgetTargetInput from '../inputs/BudgetTargetInput' ; import { FormItemExt } from './formItemExt' ; export default function ProjectTarget ( { name , hideLabel , target , targetSubFee , currency , onTargetChange , onTargetSubFeeChange , onCurrencyChange , disabled , formItemProps , fee , } ) { return ( < Form . Item extra = "The maximum amount of funds that can be distributed from this project in one funding cycle. Funds will be withdrawn in ETH no matter the currency you choose." name = { name } label = { hideLabel ? undefined : 'Funding target' } { ... formItemProps } > < BudgetTargetInput target = { target } targetSubFee = { targetSubFee } onTargetChange = { onTargetChange } onTargetSubFeeChange = { onTargetSubFeeChange } currency = { currency } onCurrencyChange = { onCurrencyChange } disabled = { disabled } placeholder = "0" fee = { fee } / > < /Form.Item>); }