UNPKG

@whop/react

Version:

React SDK for building embedded apps on Whop

10 lines (9 loc) 477 B
import React from "react"; import { Theme } from "./index.mjs"; import { WhopIframeSdkProvider } from "../iframe/index.mjs"; import { WhopThemeScript } from "../theme/index.mjs"; export function WhopApp({ children, sdkOptions, ...themeProps }) { return React.createElement(React.Fragment, null, React.createElement(WhopThemeScript, null), React.createElement(WhopIframeSdkProvider, { options: sdkOptions }, React.createElement(Theme, themeProps, children))); }