@anoki/fse-ui
Version:
FSE UI components library
3 lines (2 loc) • 1.72 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./sections/CommunicationContentsHome/CommunicationContentsHome.css');const t=require("./index.cjs237.js"),l=require("react");;/* empty css */const m=require("./index.cjs265.js"),d=require("./index.cjs123.js"),p=require("./index.cjs25.js"),j=require("./index.cjs22.js"),h=require("./index.cjs116.js"),g=require("./index.cjs226.js");function R({sectionId:e,title:s,elements:i=[],loading:a=!1,noResultsLabel:c="Nessun risultato trovato",linkHref:n,linkLabel:x="Scopri tutti",asLink:u="a"}){const o=e?`${e}-title`:void 0;return t.jsxRuntimeExports.jsxs("section",{id:e,"aria-labelledby":o,className:"communication-contents d-flex section-gap flex-column",children:[t.jsxRuntimeExports.jsx(d.SectionHeading,{className:"title pb-x16",title:s,titleId:o,color:"slate-20",mdFs:"2",titleMarginBottom:"mb-x0",descriptionMarginBottom:"mb-x0",children:n&&t.jsxRuntimeExports.jsx(p.ArrowLink,{href:n,asLink:u,fs:"7",children:x.toUpperCase()})}),t.jsxRuntimeExports.jsx(m.default,{columns:{0:1,768:2,992:3},gap:24,className:"masonry-component",children:i==null?void 0:i.map(r=>l.createElement(j.AggregationItemCard,{...r,key:r._id}))}),t.jsxRuntimeExports.jsx(h.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(g.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.cjs155.js.map