UNPKG

@trycourier/courier-react

Version:

The React components for the Courier web UI

25 lines (24 loc) 770 B
import { CourierToast as CourierToastElement } from '@trycourier/courier-ui-toast'; import { CourierToastProps } from '@trycourier/courier-react-components'; /** * CourierToast 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 <CourierToast />; * ``` */ export declare const CourierToast: import('react').ForwardRefExoticComponent<CourierToastProps & import('react').RefAttributes<CourierToastElement>>;