import { ExternalLink, Loader2 } from 'lucide-react' const EXPLORER_BASE = 'https://bananablocks.com/tx/' export interface TxRecord { label: string txid: string timestamp: Date error?: string } interface Props { sweeping: boolean progress: string history: TxRecord[] } export function TxHistory({ sweeping, progress, history }: Props) { return ( <> {sweeping && (

{progress}

Do not close this page.

)} {history.length > 0 && !sweeping && (
Transactions ({history.length})
{[...history].reverse().map((tx, i) => (
{tx.error ? '\u2717' : '\u2713'} {tx.label}
{tx.error ? ( {tx.error} ) : ( {tx.txid.substring(0, 12)}... )}
))}
)} ) }