@trycourier/courier-ui-inbox
Version:
Inbox components for the Courier web UI
24 lines (23 loc) • 900 B
TypeScript
import { CourierBaseElement } from '@trycourier/courier-ui-core';
import { CourierInboxTheme } from '../types/courier-inbox-theme';
import { CourierInboxThemeManager } from '../types/courier-inbox-theme-manager';
export type CourierUnreadCountLocation = 'button' | 'header';
export declare class CourierUnreadCountBadge extends CourierBaseElement {
static get id(): string;
private _themeSubscription;
private _location;
private _count;
private _badge?;
private _style?;
get theme(): CourierInboxTheme;
constructor(props: {
themeBus: CourierInboxThemeManager;
location: CourierUnreadCountLocation;
});
onComponentMounted(): void;
onComponentUnmounted(): void;
static getStyles(theme: CourierInboxTheme): string;
setCount(count: number): void;
refreshTheme(location: CourierUnreadCountLocation): void;
private updateBadge;
}