UNPKG

@enclavemoney/enclave-wallet-sdk

Version:

A simple enclave wallet SDK for React applications

23 lines (22 loc) 724 B
import React from "react"; import { ThemeMode } from "../types/theme"; interface NetworkInfo { name: string; icon: string; } interface NetworkAllocation { name: string; chainId: number; amount: string; } declare function SelectNetwork({ availableNetworks, selectedNetworksPay, setSelectedNetworksPay, fromToken, onBack, onDone, type, theme, }: { availableNetworks: NetworkInfo[]; selectedNetworksPay: NetworkAllocation[]; setSelectedNetworksPay: (networks: NetworkAllocation[]) => void; fromToken: any; onBack: () => void; onDone: (networks: NetworkAllocation[]) => void; type?: "SWAP" | "TRANSFER"; theme?: ThemeMode; }): React.JSX.Element; export default SelectNetwork;