UNPKG

@anoki/fse-ui

Version:

FSE UI components library

3 lines (2 loc) 1.65 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./sections/CommunicationContentsHome/CommunicationContentsHome.css');const t=require("./index.cjs278.js"),l=require("react");;/* empty css */const m=require("./index.cjs229.js"),d=require("./index.cjs21.js"),p=require("./index.cjs15.js"),j=require("./index.cjs219.js"),h=require("./index.cjs235.js");function R({sectionId:e,title:s,elements:i=[],loading:a=!1,noResultsLabel:c="Nessun risultato trovato",linkHref:o,linkLabel:x="Scopri tutti",asLink:u="a"}){const r=e?`${e}-title`:void 0;return t.jsxRuntimeExports.jsxs("section",{id:e,"aria-labelledby":r,className:"communication-contents d-flex section-gap flex-column",children:[t.jsxRuntimeExports.jsx(m.SectionHeading,{className:"title pb-x16",title:s,titleId:r,color:"slate-20",mdFs:"2",titleMarginBottom:"mb-x0",descriptionMarginBottom:"mb-x0",children:o&&t.jsxRuntimeExports.jsx(d.ArrowLink,{href:o,asLink:u,fs:"7",children:x.toUpperCase()})}),t.jsxRuntimeExports.jsx("div",{className:"masonry-component",children:i==null?void 0:i.map(n=>l.createElement(p.AggregationItemCard,{...n,key:n._id}))}),t.jsxRuntimeExports.jsx(j.Row,{className:"w-full-adpt",justifyContent:"center",m:"x12",children:a&&t.jsxRuntimeExports.jsx("div",{role:"status","aria-live":"polite","aria-label":"Caricamento in corso",children:t.jsxRuntimeExports.jsx(h.Spinner,{height:30,width:30})})}),t.jsxRuntimeExports.jsx("p",{className:"total-elements-label",children:(i==null?void 0:i.length)===0&&t.jsxRuntimeExports.jsx("span",{children:c})})]})}exports.CommunicationContentsHome=R; //# sourceMappingURL=index.cjs84.js.map