import { useContext } from "react";
import { LensPostContext } from "@/registry/new-york/lib/lens-post-provider";
export const useLensPostContext = () => {
const context = useContext(LensPostContext);
if (!context) {
throw new Error("useLensPostContext must be used within a PostProvider");
}
return context;
};
npx shadcn@latest add @lens-blocks/use-post-contextimport { UsePostContext } from "@/hooks/use-post-context"const value = UsePostContext()