UNPKG

@promokit/react

Version:

React components for PromoKit marketing infrastructure

25 lines (24 loc) 782 B
export interface ComponentPromoError extends Error { status: number; statusText: string; details?: any; endpoint?: string; timestamp: string; isNetworkError: boolean; isClientError: boolean; isConflictError: boolean; isUnauthorizedError: boolean; isForbiddenError: boolean; isNotFoundError: boolean; isRateLimitError: boolean; getUserFriendlyMessage(): string; } export interface ErrorDisplayProps { error: ComponentPromoError | Error; onRetry?: () => void; onDismiss?: () => void; showDetails?: boolean; isDark?: boolean; className?: string; } export declare function ErrorDisplay({ error, onRetry, onDismiss, showDetails, isDark, className }: ErrorDisplayProps): import("react/jsx-runtime").JSX.Element;