UNPKG

@trycourier/courier-ui-inbox

Version:

Inbox components for the Courier web UI

33 lines (32 loc) 947 B
import { InboxAction, InboxMessage } from '@trycourier/courier-js'; import { CourierInboxFeedType } from './feed-type'; export type CourierInboxHeaderFactoryProps = { feedType: CourierInboxFeedType; unreadCount: number; messageCount: number; }; export type CourierInboxStateLoadingFactoryProps = { feedType: CourierInboxFeedType; }; export type CourierInboxStateEmptyFactoryProps = { feedType: CourierInboxFeedType; }; export type CourierInboxStateErrorFactoryProps = { feedType: CourierInboxFeedType; error: Error; }; export type CourierInboxListItemFactoryProps = { message: InboxMessage; index: number; }; export type CourierInboxListItemActionFactoryProps = { message: InboxMessage; action: InboxAction; index: number; }; export type CourierInboxPaginationItemFactoryProps = { feedType: CourierInboxFeedType; }; export type CourierInboxMenuButtonFactoryProps = { unreadCount: number; };