'use client'; import { useTransactions } from '@/hooks/useTransactions'; import { getExplorerUrl } from '@/lib/celo'; import { LoadingSpinner } from '../ui/LoadingSpinner'; export function TransactionModal() { const { currentTx, updateTransaction } = useTransactions(); if (!currentTx) return null; const handleClose = () => { updateTransaction(currentTx.hash, { ...currentTx }); // You might want to actually close the modal here }; return (
{currentTx.description}
{/* Transaction Hash */} {currentTx.hash && (Transaction Hash:
{currentTx.hash}