UNPKG

@vip30/react-social-media-embed

Version:

Easily embed social media posts from Facebook, Instagram, LinkedIn, Pinterest, TikTok, X (Twitter), YouTube and Bluesky in React.

19 lines (18 loc) 587 B
/** * Specifies a frame's [browser APIs](https://developer.mozilla.org/en-US/docs/Web/API), * such as `window` and `document`. */ export interface Frame { window?: Window; document?: Document; } /** * Use the provided Frame, or fall back on the default one (if available) if none is provided. * * This hook is useful in preventing SSR issues when `window` and `document` * aren't defined. * * @param frame The Frame to use, if any. * @returns A Frame object containing references to `window` and `document`. */ export declare const useFrame: (frame?: Frame) => Frame;