@anoki/fse-ui
Version:
FSE UI components library
3 lines (2 loc) • 2.05 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./sections/CommunicationContentsHome/CommunicationContentsHome.css');const i=require("./index.cjs237.js"),d=require("react");;/* empty css */const p=require("./index.cjs266.js"),h=require("./index.cjs22.js"),R=require("./index.cjs123.js"),s=require("./index.cjs116.js"),m=require("./index.cjs226.js"),l=require("./index.cjs32.js");function E({title:c,elements:n=[],total:r,totalLabels:t={first:"Stai visualizzando",middle:"di",end:"elementi"},handleLoadMore:u,loading:o=!1,showMoreTitle:e="Visualizza altro ",noResultsLabel:a="Nessun risultato trovato"}){const j=r>(n==null?void 0:n.length);return i.jsxRuntimeExports.jsxs("section",{className:"communication-contents d-flex section-gap flex-column",children:[i.jsxRuntimeExports.jsx(R.SectionHeading,{className:"title",title:c}),i.jsxRuntimeExports.jsx(p.default,{columns:{0:1,768:2,992:3},gap:24,className:"masonry-component",children:n==null?void 0:n.map(x=>d.createElement(h.AggregationItemCard,{...x,key:x._id}))}),i.jsxRuntimeExports.jsx(s.Row,{className:"w-full-adpt",justifyContent:"center",m:"x12",children:o&&i.jsxRuntimeExports.jsx(m.Spinner,{height:30,width:30})}),i.jsxRuntimeExports.jsx("span",{className:"total-elements-label",children:(n==null?void 0:n.length)===0?i.jsxRuntimeExports.jsx("span",{children:a}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx("span",{children:t.first}),i.jsxRuntimeExports.jsxs(s.Row,{justifyContent:"center",gap:"x4",children:[i.jsxRuntimeExports.jsx("b",{children:n==null?void 0:n.length}),i.jsxRuntimeExports.jsx("span",{children:t.middle}),i.jsxRuntimeExports.jsx("span",{children:r}),i.jsxRuntimeExports.jsx("span",{children:t.end})]})]})}),j&&!o&&(n==null?void 0:n.length)>0&&i.jsxRuntimeExports.jsx(s.Row,{justifyContent:"center",alignItems:"center",mt:"x16",children:i.jsxRuntimeExports.jsx(l.Button,{onClick:u,children:e})})]})}exports.CommunicationContents=E;
//# sourceMappingURL=index.cjs154.js.map