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