import moment from 'moment'; import { InfoSectionProps } from '../../model/types'; import { useTranslation } from 'react-i18next'; export const BillingInfoSection = ({ billingInfo, }: InfoSectionProps) => { const { t } = useTranslation(); const getInstallmentMonth = () => { let rs = []; if((!!billingInfo?.installmentMonth && parseInt(billingInfo?.installmentMonth) > 1)){ rs.push(
  • { t('transaction.fields.installmentMonth') } { t('transaction.fields.installmentMonthly', { count: parseInt(billingInfo?.installmentMonth || '0') }) }
  • ); } else{ rs.push(
  • { t('transaction.fields.installmentMonth') } { t('transaction.fields.lumpSum') }
  • ); } return rs; }; return ( <>
    { t('transaction.sections.importantInfo') }
    ) };