UNPKG

@mojito-inc/secondary-market

Version:

Mojito secondary market is the platform to purchase NFT.

2 lines (1 loc) 925 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@mui/material/Typography"),t=require("@mui/material/Box"),i=require("@mui/material/styles"),o=require("html-react-parser"),l=require("./VideoWithImageCard.js");exports.default=({url:a,title:s,subTitle:u,placeholderImage:d,height:n,videoAttributes:h})=>{var p,x;const m=i.useTheme();return e.jsxs(t,{children:[e.jsx(t,{sx:{background:"transparent",marginBottom:"12px",overflow:"hidden",borderRadius:"12px"},children:e.jsx(l.default,{url:a,placeholderImage:d,videoAttributes:h,height:n,style:{height:"100%",marginTop:"-10px"}})}),e.jsx(r,{sx:{fontWeight:400,fontSize:"16px",marginBottom:"2px",color:null===(x=null===(p=null==m?void 0:m.palette)||void 0===p?void 0:p.text)||void 0===x?void 0:x.primary},children:o(s)}),u&&e.jsx(r,{sx:{fontSize:"12px",fontWeight:400,color:m.palette.grey[500]},children:o(u)})]})};