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