{amountPrefix ? (
{amountPrefix}
) : null}
setAmountInput(event.target.value)}
placeholder="Enter amount"
className={cn(
"h-14 rounded-xl bg-background/70 px-4 text-lg",
amountPrefix ? "pl-10" : "",
)}
aria-invalid={Boolean(amountError)}
aria-describedby={amountError ? "amount-error" : undefined}
/>
{QUICK_AMOUNTS.map((quickAmount) => {
const isActive =
inputValidation.ok && inputValidation.value === quickAmount;
return (
);
})}
{amountError ? (
{amountError}
) : null}
Converted value
{fromAsset && toAsset ? (
{fromAsset.code}
to
{toAsset.code}
) : null}
{convertedDisplay}
{fromAsset ? (
for{" "}
{inputValidation.ok
? formatAmount(inputValidation.value, fromAsset)
: "-"}{" "}
{fromAsset.code}
) : null}