useIsConnected
Hook for indicating if a user is connected or not. Including both wallet and email connection.
type useIsConnected = () => boolean;
Usage
import { useIsConnected } from "@crossbell/connect-kit";
function App() {
const isConnected = useIsConnected();
return <button>{isConnected ? "Disconnect" : "Connect"}</button>;
}