import"react";import{Link as g,Spinner as r,Text as i}from"@chakra-ui/react";import{Flex as d}from"@chakra-ui/layout";import{jsx as l,jsxs as o}from"react/jsx-runtime";var f=({transaction:e})=>o(d,{direction:"column",align:"center",children:[(e==null?void 0:e.completed)==="pending"?l(m,{}):(e==null?void 0:e.completed)==="error"?l(x,{}):(e==null?void 0:e.completed)==="completed"?l(u,{}):l(m,{}),l(d,{h:"10",children:(e==null?void 0:e.completed)==="completed"&&l(g,{fontSize:"xs",fontWeight:"semibold",mt:8,onClick:()=>window.open(e==null?void 0:e.link),children:"View on Explorer"})})]}),m=()=>o(d,{flexDirection:"column",align:"center",children:[l(d,{justify:"center",align:"center",bg:"muted",w:10,h:10,borderRadius:"50%",children:l(r,{size:"md"})}),l(i,{fontSize:"lg",fontWeight:"bold",mt:"2",children:"Transaction Pending"})]}),u=()=>o(d,{flexDirection:"column",align:"center",children:[l(d,{justify:"center",align:"center",bg:"muted",w:10,h:10,borderRadius:"50%",children:"\u{1F389}"}),l(i,{fontSize:"lg",fontWeight:"bold",mt:"2",children:"Mint Successful"})]}),x=()=>o(d,{flexDirection:"column",align:"center",children:[l(d,{justify:"center",align:"center",bg:"muted",w:10,h:10,borderRadius:"50%",children:"\u274C"}),l(i,{fontSize:"lg",fontWeight:"bold",mt:"2",children:"Mint Failed"})]}),F=f;export{F as default};
