{accountType
? `${
AccountTypeMapping[
accountType as keyof typeof Schema.AccountType
]
} Account`
: t('Select account type')}
{[
Schema.AccountType.ACCOUNT_TYPE_GENERAL,
Schema.AccountType.ACCOUNT_TYPE_BOND,
Schema.AccountType.ACCOUNT_TYPE_MARGIN,
].map((type) => (
setAccountType(type as Schema.AccountType)}
>
{AccountTypeMapping[type as keyof typeof Schema.AccountType]}
))}
{asset ? asset.symbol : t('Select asset')}
{assets.map((a) => (
setAsset(a)}>
{a.symbol}
))}
) =>
setRange(e.target.value as keyof typeof DateRange)
}
/>