UNPKG

@cgi-learning-hub/ui

Version:

@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features

2 lines (1 loc) 633 B
"use strict";const t=require("react/jsx-runtime"),g=require("../../Stack-CIyfgZCM.cjs"),x=require("../../Box-DR3n_po_.cjs"),e=require("../../Typography-CSTmKyr8.cjs"),l=({image:n,imageProps:o,imageSrc:i,title:s,description:r,descriptionProps:c,svgProps:m,titleProps:h,imageHeight:a=200,...u})=>t.jsxs(g.Stack,{direction:"column",alignItems:"center",margin:"0 auto",...u,children:[t.jsx(x.Box,{height:a,width:"auto",children:n??t.jsx("img",{src:i,height:"100%",...o})}),t.jsx(e.Typography,{variant:"h2",fontWeight:500,mt:3,...h,children:s}),r?t.jsx(e.Typography,{color:"textSecondary",mt:2,...c,children:r}):null]});module.exports=l;