@trycourier/courier-react
Version:
The React components for the Courier web UI
21 lines (20 loc) • 1.64 kB
TypeScript
import { default as React } from 'react';
import { CourierInboxListItemActionFactoryProps, CourierInboxListItemFactoryProps, CourierInboxTheme, CourierInboxHeaderFactoryProps, CourierInboxStateEmptyFactoryProps, CourierInboxStateLoadingFactoryProps, CourierInboxStateErrorFactoryProps, CourierInboxPaginationItemFactoryProps, CourierInboxFeedType } from '@trycourier/courier-ui-inbox';
import { CourierComponentThemeMode } from '@trycourier/courier-ui-core';
export interface CourierInboxProps {
height?: string;
lightTheme?: CourierInboxTheme;
darkTheme?: CourierInboxTheme;
mode?: CourierComponentThemeMode;
feedType?: CourierInboxFeedType;
onMessageClick?: (props: CourierInboxListItemFactoryProps) => void;
onMessageActionClick?: (props: CourierInboxListItemActionFactoryProps) => void;
onMessageLongPress?: (props: CourierInboxListItemFactoryProps) => void;
renderHeader?: (props: CourierInboxHeaderFactoryProps | undefined | null) => React.ReactNode;
renderListItem?: (props: CourierInboxListItemFactoryProps | undefined | null) => React.ReactNode;
renderEmptyState?: (props: CourierInboxStateEmptyFactoryProps | undefined | null) => React.ReactNode;
renderLoadingState?: (props: CourierInboxStateLoadingFactoryProps | undefined | null) => React.ReactNode;
renderErrorState?: (props: CourierInboxStateErrorFactoryProps | undefined | null) => React.ReactNode;
renderPaginationItem?: (props: CourierInboxPaginationItemFactoryProps | undefined | null) => React.ReactNode;
}
export declare const CourierInbox: (props: CourierInboxProps) => import("react/jsx-runtime").JSX.Element;