"use strict";var H=Object.create;var p=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var E=(t,s)=>{for(var a in s)p(t,a,{get:s[a],enumerable:!0})},f=(t,s,a,l)=>{if(s&&typeof s=="object"||typeof s=="function")for(let m of M(s))!A.call(t,m)&&m!==a&&p(t,m,{get:()=>s[m],enumerable:!(l=L(s,m))||l.enumerable});return t};var h=(t,s,a)=>(a=t!=null?H(w(t)):{},f(s||!t||!t.__esModule?p(a,"default",{value:t,enumerable:!0}):a,t)),j=t=>f(p({},"__esModule",{value:!0}),t);var U={};E(U,{default:()=>S});module.exports=j(U);var e=h(require("react")),x=require("ethers/lib/utils"),D=({txHash:t,from:s,to:a,value:l,gasUsed:m,blockNumber:g,status:c,timestamp:N,containerProps:o,headerProps:y,contentProps:v,rowProps:n,labelProps:i,valueProps:r,statusProps:T})=>{let u=d=>`${d.slice(0,6)}...${d.slice(-4)}`,b=d=>new Date(d*1e3).toLocaleString();return e.default.createElement("div",{className:"bg-white shadow-lg rounded-lg p-6 max-w-2xl mx-auto",...o},e.default.createElement("div",{className:"text-2xl font-bold mb-4 text-gray-800",...y},"Transaction Receipt"),e.default.createElement("div",{className:"space-y-3",...v},e.default.createElement("div",{className:"flex justify-between items-center",...n},e.default.createElement("span",{className:"text-gray-600 font-medium",...i},"Status:"),e.default.createElement("div",{className:`px-3 py-1 rounded-full text-white ${c==="success"?"bg-green-500":c==="failure"?"bg-red-500":"bg-yellow-500"}`,...T},c.charAt(0).toUpperCase()+c.slice(1))),e.default.createElement("div",{className:"flex justify-between items-center",...n},e.default.createElement("span",{className:"text-gray-600 font-medium",...i},"Transaction Hash:"),e.default.createElement("span",{className:"text-blue-600 truncate max-w-xs",...r},t)),e.default.createElement("div",{className:"flex justify-between items-center",...n},e.default.createElement("span",{className:"text-gray-600 font-medium",...i},"From:"),e.default.createElement("span",{className:"text-gray-800",...r},u(s))),e.default.createElement("div",{className:"flex justify-between items-center",...n},e.default.createElement("span",{className:"text-gray-600 font-medium",...i},"To:"),e.default.createElement("span",{className:"text-gray-800",...r},u(a))),e.default.createElement("div",{className:"flex justify-between items-center",...n},e.default.createElement("span",{className:"text-gray-600 font-medium",...i},"Value:"),e.default.createElement("span",{className:"text-gray-800",...r},(0,x.formatEther)(l)," ETH")),e.default.createElement("div",{className:"flex justify-between items-center",...n},e.default.createElement("span",{className:"text-gray-600 font-medium",...i},"Gas Used:"),e.default.createElement("span",{className:"text-gray-800",...r},m)),e.default.createElement("div",{className:"flex justify-between items-center",...n},e.default.createElement("span",{className:"text-gray-600 font-medium",...i},"Block Number:"),e.default.createElement("span",{className:"text-gray-800",...r},g)),e.default.createElement("div",{className:"flex justify-between items-center",...n},e.default.createElement("span",{className:"text-gray-600 font-medium",...i},"Timestamp:"),e.default.createElement("span",{className:"text-gray-800",...r},b(N)))))},S=D;
//# sourceMappingURL=TransactionReceipt.js.map