UNPKG

@trycourier/courier-react

Version:

The React components for the Courier web UI

27 lines (26 loc) 1.97 kB
import { CourierInboxFeedType, CourierInboxHeaderFactoryProps, CourierInboxListItemActionFactoryProps, CourierInboxListItemFactoryProps, CourierInboxMenuButtonFactoryProps, CourierInboxPaginationItemFactoryProps, CourierInboxPopupAlignment, CourierInboxStateEmptyFactoryProps, CourierInboxStateErrorFactoryProps, CourierInboxStateLoadingFactoryProps, CourierInboxTheme } from '@trycourier/courier-ui-inbox'; import { CourierComponentThemeMode } from '@trycourier/courier-ui-core'; export interface CourierInboxMenuProps { popupAlignment?: CourierInboxPopupAlignment; popupWidth?: string; popupHeight?: string; left?: string; top?: string; right?: string; bottom?: string; lightTheme?: CourierInboxTheme; darkTheme?: CourierInboxTheme; mode?: CourierComponentThemeMode; feedType?: CourierInboxFeedType; onMessageClick?: (props: CourierInboxListItemFactoryProps) => void; onMessageActionClick?: (props: CourierInboxListItemActionFactoryProps) => void; onMessageLongPress?: (props: CourierInboxListItemFactoryProps) => void; renderPopupHeader?: (props: CourierInboxHeaderFactoryProps | undefined | null) => React.ReactNode; renderPopupListItem?: (props: CourierInboxListItemFactoryProps | undefined | null) => React.ReactNode; renderPopupEmptyState?: (props: CourierInboxStateEmptyFactoryProps | undefined | null) => React.ReactNode; renderPopupLoadingState?: (props: CourierInboxStateLoadingFactoryProps | undefined | null) => React.ReactNode; renderPopupErrorState?: (props: CourierInboxStateErrorFactoryProps | undefined | null) => React.ReactNode; renderPopupPaginationItem?: (props: CourierInboxPaginationItemFactoryProps | undefined | null) => React.ReactNode; renderPopupMenuButton?: (props: CourierInboxMenuButtonFactoryProps | undefined | null) => React.ReactNode; } export declare const CourierInboxMenu: (props: CourierInboxMenuProps) => import("react/jsx-runtime").JSX.Element;