// Copyright 2017-2025 @pezkuwi/app-assets authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { BN } from '@pezkuwi/util'; import React, { useState } from 'react'; import { Button, InputAddress, InputBalance, Modal, Toggle, TxButton } from '@pezkuwi/react-components'; import { useApi, useToggle } from '@pezkuwi/react-hooks'; import { useTranslation } from '../translate.js'; interface Props { accountId: string; assetId: BN; className?: string; minBalance: BN; siFormat: [number, string]; } function Transfer ({ accountId, assetId, className, minBalance, siFormat: [siDecimals, siSymbol] }: Props): React.ReactElement { const { t } = useTranslation(); const { api } = useApi(); const [isOpen, toggleOpen] = useToggle(); const [amount, setAmount] = useState(); const [recipientId, setRecipientId] = useState(null); const [isProtected, setIsProtected] = useState(true); return ( <>