/** * React hook for authenticating users with Abstract Global Wallet via Privy. * * This hook provides utility functions to prompt users to sign in with Abstract Global Wallet * or link their existing authenticated Privy account to an Abstract Global Wallet. * * Under the hood, it uses Privy's `useCrossAppAccounts` hook to connect to Abstract Global Wallet's * authentication system. * * @returns An object containing login and linking functions * @returns {function} login - Prompts users to authenticate with their Abstract Global Wallet * @returns {function} link - Allows authenticated users to link their account to an Abstract Global Wallet * * @example * ```tsx * import { useAbstractPrivyLogin } from "@abstract-foundation/agw-react/privy"; * * function LoginButton() { * const { login, link } = useAbstractPrivyLogin(); * * return ( *