react-bluesky-embed
Version:
React Bluesky Embed allows you to embed post threads, profiles, and comments in your React application when using Next.js, Create React App, Vite, and more.
11 lines (10 loc) • 408 B
TypeScript
import { PostThreadConfig, PostThreadParams } from "./api/index.js";
/**
* SWR hook for fetching a postThread in the browser.
*/
export declare const usePostThread: (params: PostThreadParams, config?: PostThreadConfig) => {
isLoading: boolean;
data: import("bluesky-embed-core/src/api/types/postThread.js").PostThread | undefined;
error: any;
};
export declare const useMounted: () => boolean;