import { ConnectButton, ConnectButtonProps } from 'thirdweb/react'; import { createAccount } from '../../core/wallet'; import { usePanna } from '../hooks/use-panna'; import { liskTheme } from '../theme'; import { getAAChain, getChain, getSupportedTokens } from '../utils'; export type LoginButtonProps = Omit & { isTesting?: boolean; }; /** * A login button component that connects users to their wallets using the Panna client from context. * * This component must be used within a PannaProvider that provides the Panna client via context. * It automatically configures the Lisk ecosystem wallet and defaults to the Lisk chain. * * @param props - All ConnectButtonProps except 'client' (which comes from PannaProvider context) * @param {boolean} [props.isTesting] - Optional flag to use the testing chain (default is false) * @throws {Error} When used outside of PannaProvider context or when no client is available * * @example * ```tsx * * * * ``` * * @example Custom styling (user styles override defaults) * ```tsx * * ``` */ export function LoginButton({ connectButton, ...props }: LoginButtonProps) { const { client, partnerId } = usePanna(); const liskEcosystemWallet = createAccount({ partnerId }); return ( ); }