@mojito-inc/secondary-market
Version:
Mojito secondary market is the platform to purchase NFT.
2 lines (1 loc) • 1.55 kB
JavaScript
import{jsxs as i,jsx as o}from"react/jsx-runtime";import l from"@mui/material/Typography";import e from"@mui/material/Box";import{useTheme as n}from"@mui/material/styles";import r from"moment";const d=({cryptoPrice:d,usdPrice:t,expiryDate:p})=>{var a,u,v,c,m,s,f,x,h,g,y,b;const S=n();return i(e,{sx:{padding:"8px 16px 8px 16px",background:null===(u=null===(a=null==S?void 0:S.palette)||void 0===a?void 0:a.toastSuccess)||void 0===u?void 0:u[500],border:`1px solid ${null===(c=null===(v=null==S?void 0:S.palette)||void 0===v?void 0:v.toastSuccess)||void 0===c?void 0:c[600]}`,borderRadius:"4px"},children:[o(e,{children:i(l,{sx:{fontSize:"12px",fontWeight:"400",color:null===(s=null===(m=null==S?void 0:S.palette)||void 0===m?void 0:m.background)||void 0===s?void 0:s.paper,display:"inline"},children:["You have submitted an offer for",o(l,{sx:{display:"inline",fontSize:"12px",fontWeight:"700",color:null===(x=null===(f=null==S?void 0:S.palette)||void 0===f?void 0:f.background)||void 0===x?void 0:x.paper,marginLeft:"3px"},children:` ${d} (${t})`})]})}),o(e,{children:i(l,{sx:{fontSize:"12px",fontWeight:"400",color:null===(g=null===(h=null==S?void 0:S.palette)||void 0===h?void 0:h.background)||void 0===g?void 0:g.paper,display:"inline"},children:["Your Offer will expire on",o(l,{sx:{display:"inline",fontSize:"12px",fontWeight:"700",color:null===(b=null===(y=null==S?void 0:S.palette)||void 0===y?void 0:y.background)||void 0===b?void 0:b.paper,marginLeft:"3px"},children:` ${r(p).format("MMMM DD, YYYY hh:mm A")} `})]})})]})};export{d as default};