interface AbstractLogin { login: () => void; logout: () => void; } /** * React hook for signing in and signing out users with Abstract Global Wallet. * * This hook provides utility functions to prompt users to sign up or sign into your * application using Abstract Global Wallet, and to sign out once connected. * * Under the hood, it uses the following wagmi hooks: * - `login`: Uses wagmi's `useConnect` hook to connect to the Abstract connector * - `logout`: Uses wagmi's `useDisconnect` hook to disconnect the user * * @returns An object containing login and logout functions * @returns {function} login - Opens the signup/login modal for Abstract Global Wallet * @returns {function} logout - Disconnects the user's wallet from the application * * @example * ```tsx * import { useLoginWithAbstract } from "@abstract-foundation/agw-react"; * import { useAccount } from "wagmi"; * * export default function LoginComponent() { * const { login, logout } = useLoginWithAbstract(); * const { isConnected } = useAccount(); * * return ( *