bigblocks
Version:
Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React
30 lines • 904 B
TypeScript
export interface ErrorDetails {
code: string;
message: string;
details?: Error | Record<string, unknown>;
txid?: string;
timestamp?: number;
}
export interface RecoverySuggestion {
title: string;
description: string;
action?: {
label: string;
onClick: () => void;
};
link?: {
label: string;
href: string;
};
}
export interface ErrorRecoveryProps {
error: ErrorDetails;
suggestions?: RecoverySuggestion[];
showTechnicalDetails?: boolean;
onRetry?: () => void;
onDismiss?: () => void;
className?: string;
}
export declare const commonSuggestions: Record<string, RecoverySuggestion[]>;
export declare function ErrorRecovery({ error, suggestions, showTechnicalDetails, onRetry, onDismiss, className, }: ErrorRecoveryProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=ErrorRecovery.d.ts.map