UNPKG

@croct/plug-react

Version:

React components and hooks to plug your React applications into Croct.

12 lines (9 loc) 452 B
import * as react from 'react'; import { PropsWithChildren, FunctionComponent } from 'react'; import { Configuration, Plug } from '@croct/plug'; type CroctProviderProps = PropsWithChildren<Configuration & Required<Pick<Configuration, 'appId'>>>; declare const CroctContext: react.Context<{ plug: Plug; } | null>; declare const CroctProvider: FunctionComponent<CroctProviderProps>; export { CroctContext, CroctProvider, type CroctProviderProps };