UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

57 lines (52 loc) 1.42 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { R as RuntimeLoginOverridableOptions } from './types-B92M8x5e.js'; import { Hex } from 'viem'; import { Chain, Cluster } from '@privy-io/js-sdk-core'; import '@solana/wallet-adapter-base'; import 'react'; import '@privy-io/public-api'; import '@metamask/eth-sig-util'; import '@solana/web3.js'; import 'eventemitter3'; type UserPillProps = { action?: { type: 'login'; options?: RuntimeLoginOverridableOptions; } | { type: 'connectWallet'; options?: { suggestedAddress?: string; }; }; expanded?: boolean; label?: React.ReactNode; size?: number; ui?: { minimal?: boolean; background?: 'accent' | 'secondary'; }; }; declare const UserPill: ({ expanded, action, label, size, ui: { minimal, background }, }: UserPillProps) => react_jsx_runtime.JSX.Element; type EvmAsset = { chain: Chain; address: Hex; ticker: string; icon?: string; }; type SolAsset = { cluster: Cluster; address: string; ticker: string; icon?: string; }; type WalletsDialogProps = { networks?: { id: number; }[]; assets?: { ethereum?: EvmAsset[]; solana?: SolAsset[]; }; }; declare const WalletsDialog: ({ networks, assets }: WalletsDialogProps) => react_jsx_runtime.JSX.Element; export { UserPill, WalletsDialog };