UNPKG

@enclavemoney/enclave-wallet-playground

Version:

A simple playground for enclave wallet SDK

24 lines (23 loc) 769 B
import React from "react"; import { ThemeMode, Theme } 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, customTheme, }: { availableNetworks: NetworkInfo[]; selectedNetworksPay: NetworkAllocation[]; setSelectedNetworksPay: (networks: NetworkAllocation[]) => void; fromToken: any; onBack: () => void; onDone: (networks: NetworkAllocation[]) => void; type?: "SWAP" | "TRANSFER"; theme?: ThemeMode; customTheme?: Theme; }): React.JSX.Element; export default SelectNetwork;