UNPKG

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.

13 lines (12 loc) 577 B
import { type ReactNode } from "react"; import { Theme, type PostThreadCoreProps } from "./utils.js"; import { PostThreadConfig, PostThreadParams } from "./api/index.js"; export type PostThreadProps = Omit<PostThreadCoreProps, "params"> & { fallback?: ReactNode; } & { params: PostThreadParams; theme?: Theme; hidePost?: boolean; config?: PostThreadConfig; }; export declare const PostThread: ({ params, theme, fallback, config, onError, hidePost, }: PostThreadProps) => string | number | boolean | import("react").JSX.Element | Iterable<ReactNode> | null;