1 import { c } from 'ttag';
3 import Field from '@proton/components/components/container/Field';
4 import Row from '@proton/components/components/container/Row';
5 import type { PaymentMethodStatusExtended, PlainPaymentMethodType } from '@proton/payments';
6 import { PAYMENT_METHOD_TYPES } from '@proton/payments';
7 import { type Currency } from '@proton/payments';
9 import PaymentSelector from './PaymentSelector';
12 paymentMethodType?: PlainPaymentMethodType;
14 onChangeAmount: (value: number) => void;
16 onChangeCurrency: (currency: Currency) => void;
17 disableCurrencySelector: boolean;
18 status: PaymentMethodStatusExtended;
27 disableCurrencySelector,
30 if (paymentMethodType === PAYMENT_METHOD_TYPES.CASH) {
36 <span className="label" id="id_desc_amount">{c('Label').t`Amount`}</span>
41 onChangeAmount={onChangeAmount}
43 onChangeCurrency={onChangeCurrency}
44 disableCurrencySelector={disableCurrencySelector}
51 export default AmountRow;