synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
36 lines (35 loc) • 1.06 kB
JavaScript
import { jsxs as s, jsx as r } from "react/jsx-runtime";
import { Stack as C, Card as _, CardMedia as p, CardContent as B } from "@mui/material";
import t from "@mui/material/Box";
import a from "./BasePortalCard.module.scss.js";
const N = ({
borderRadiusPx: m,
boxShadow: d,
children: l,
contentBelowCard: e,
cardSize: i = "medium",
className: c,
backgroundImage: o,
backgroundColor: n
}) => /* @__PURE__ */ s(C, { children: [
/* @__PURE__ */ s(
_,
{
className: `${c} ${a.BasePortalCard__root} ${a[i]}`,
sx: {
backgroundColor: n,
borderRadius: m,
boxShadow: d
},
children: [
/* @__PURE__ */ r(t, { className: a.BasePortalCard__media, children: o && /* @__PURE__ */ r(p, { image: o, component: "img" }) }),
/* @__PURE__ */ r(B, { className: a.BasePortalCard__content, children: l })
]
}
),
e && /* @__PURE__ */ r(t, { className: a.BasePortalCard__contentBelow, children: e })
] });
export {
N as default
};
//# sourceMappingURL=BasePortalCard.js.map