@trycourier/courier-react
Version:
The React components for the Courier web UI
27 lines (26 loc) • 923 B
TypeScript
import { CourierInboxPopupMenu as CourierInboxPopupMenuElement } from '@trycourier/courier-ui-inbox';
import { CourierInboxPopupMenuProps } from '@trycourier/courier-react-components';
/**
* CourierInboxPopupMenu React component.
*
* This component is used to display a popup menu for a message in the inbox.
*
* @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 <CourierInboxPopupMenu />;
* ```
*/
export declare const CourierInboxPopupMenu: import('react').ForwardRefExoticComponent<CourierInboxPopupMenuProps & import('react').RefAttributes<CourierInboxPopupMenuElement>>;