UNPKG

@enclavemoney/enclave-wallet-playground

Version:

A simple playground for enclave wallet SDK

49 lines (48 loc) 1.39 kB
import React from "react"; import { ThemeMode, Theme } from "../../types/theme"; interface Token { symbol: string; name: string; icon?: string; logoURI?: string; address: string; chainId: number; decimals: number; balance?: string; amount?: string; chainIds?: any[]; price?: number; priceUsd?: number; } interface SendToUser { status: boolean; username?: string; walletAddress?: string; solanaWalletAddress?: string; ensName?: string; sns?: string; bitcoinWalletAddress?: string; } interface NetworkSelection { name: string; chainId: number; amount?: string; } interface ReviewTransferProps { selectedToken: Token; amount: string; recipient: string; sendToUser: SendToUser; addressToSend: string; selectedFromNetworksPay: NetworkSelection[]; selectedToNetworksPay: NetworkSelection[]; isTransferring: boolean; transferError: string | null; onBack: () => void; onConfirm: () => void; proActive: boolean; theme?: ThemeMode; customTheme?: Theme; } declare function ReviewTransfer({ selectedToken, amount, recipient, sendToUser, addressToSend, selectedFromNetworksPay, selectedToNetworksPay, isTransferring, transferError, onBack, onConfirm, proActive, theme, customTheme, }: ReviewTransferProps): React.JSX.Element; export default ReviewTransfer;