Follow Button Component
A button component to follow or unfollow a Lens Account, displaying the current follow state.
Installation
Usage
import { LensFollowButton } from "@/components/account/lens-follow-button";
import { useAccount, useSessionClient } from "@lens-protocol/react";
import { useWalletClient } from "wagmi";
const session = useSessionClient();
const wallet = useWalletClient();
const account = useAccount({
username: {
localName: "paulburke",
},
});
<LensFollowButton account={account} session={session} wallet={wallet} />