@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
33 lines (32 loc) • 871 B
JavaScript
import { jsxs as l, jsx as t } from "react/jsx-runtime";
import { S as g } from "../../Stack-DSJ2DqNd.js";
import { B as p } from "../../Box-BI4osO9v.js";
import { T as o } from "../../Typography-Dy8r_tT2.js";
const S = ({
image: e,
imageProps: i,
imageSrc: a,
title: m,
description: r,
descriptionProps: n,
svgProps: d,
titleProps: h,
imageHeight: c = 200,
...s
}) => /* @__PURE__ */ l(
g,
{
direction: "column",
alignItems: "center",
margin: "0 auto",
...s,
children: [
/* @__PURE__ */ t(p, { height: c, width: "auto", children: e ?? /* @__PURE__ */ t("img", { src: a, height: "100%", ...i }) }),
/* @__PURE__ */ t(o, { variant: "h2", fontWeight: 500, mt: 3, ...h, children: m }),
r ? /* @__PURE__ */ t(o, { color: "textSecondary", mt: 2, ...n, children: r }) : null
]
}
);
export {
S as default
};