UNPKG

@trycourier/courier-react

Version:

The React components for the Courier web UI

25 lines (24 loc) 820 B
import { CourierInbox as CourierInboxElement } from '@trycourier/courier-ui-inbox'; import { CourierInboxProps } from '@trycourier/courier-react-components'; /** * CourierInbox React component. * * @example * ```tsx * const courier = useCourier(); * * useEffect(() => { * // Generate a JWT for your user (do this on your backend server) * const jwt = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'; // Replace with actual JWT * * // Authenticate the user with the inbox * courier.shared.signIn({ * userId: $YOUR_USER_ID, * jwt: jwt, * }); * }, []); * * return <CourierInbox />; * ``` */ export declare const CourierInbox: import('../../../../node_modules/react').ForwardRefExoticComponent<CourierInboxProps & import('../../../../node_modules/react').RefAttributes<CourierInboxElement>>;