Files
bigcapital/packages/webapp/src/containers/CashFlow/MoneyInDialog/MoneyInContentFields.tsx
2023-05-23 13:56:35 +02:00

30 lines
826 B
TypeScript

// @ts-nocheck
import React from 'react';
import OwnerContributionFormFields from './OwnerContribution/OwnerContributionFormFields';
import OtherIncomeFormFields from './OtherIncome/OtherIncomeFormFields';
import TransferFromAccountFormFields from './TransferFromAccount/TransferFromAccountFormFields';
/**
*
* @param param0
* @returns
*/
export default function MoneyInContentFields({ accountType }) {
const handleTransactionType = () => {
switch (accountType) {
case 'owner_contribution':
return <OwnerContributionFormFields />;
case 'other_income':
return <OtherIncomeFormFields />;
case 'transfer_from_account':
return <TransferFromAccountFormFields />;
default:
break;
}
};
return <React.Fragment>{handleTransactionType()}</React.Fragment>;
}