Post Block
Displays a post from Lens Social Protocol, including the content, author, attachments, and engagement actions.
Installation
Usage
import { LensPostProvider } from "@/lib/lens-post-context";
import { LensPost } from "@/components/lens-post";
import { useSessionClient, postId } from "@lens-protocol/react";
import { useWalletClient } from "wagmi";
const session = useSessionClient();
const wallet = useWalletClient();
const post = postId("SOME_POST_ID");
<LensPostProvider postId={post} session={session} wallet={wallet}>
<LensPost />
</LensPostProvider>