UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

61 lines (56 loc) 1.55 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-D7U23FgR.js'; import { Hex } from 'viem'; import { Chain } from '@privy-io/js-sdk-core'; import '@coinbase/wallet-sdk'; import '@simplewebauthn/browser'; import '@solana/kit'; import 'react'; import '@privy-io/api-types'; import '@base-org/account'; import '@wallet-standard/base'; import '@solana/wallet-standard-features'; import '@wallet-standard/features'; import 'eventemitter3'; type UserPillProps = { action?: { type: 'login'; options?: RuntimeLoginOverridableOptions; } | { type: 'connectWallet'; options?: { description?: 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 = { chain: SolanaChain; 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 };