import { StepHeader } from '@/components/onboarding/step-header'; import { Button } from '@/components/ui/button'; import { CreatedAccount } from '@/hooks/use-onboarding-state'; import { formatAccountType } from '@/types/account'; import { __ } from '@/utils/i18n'; import { Check, CheckCircle2, Plus, Wallet } from 'lucide-react'; import { StepButton } from './step-button'; interface ExistingAccount { id: string; name: string; name_iv: string; type: string; currency_code: string; bank_id: string; bank?: { id: string; name: string; logo: string | null; }; } interface StepMoreAccountsProps { createdAccounts: CreatedAccount[]; existingAccounts?: ExistingAccount[]; onAddMore: () => void; onFinish: () => void; } export function StepMoreAccounts({ createdAccounts, existingAccounts = [], onAddMore, onFinish, }: StepMoreAccountsProps) { const description = __( 'Would you like to add more accounts or continue to the dashboard?', ); return (

{__('Your Accounts')}

{createdAccounts.map((account) => (

{account.name}

{formatAccountType(account.type)} •{' '} {account.currencyCode}

))} {existingAccounts.map((account) => (

{account.bank?.name || 'Account'}

{formatAccountType(account.type)} •{' '} {account.currency_code}

))}

{__('Add More Accounts?')}

{__( 'Track all your finances in one place \u2014 checking,\n savings, credit cards, investments, and more.', )}

); }