@anoki/fse-ui
Version:
FSE UI components library
3 lines (2 loc) • 2 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./sections/CommunicationContents/CommunicationContents.css');const i=require("./index.cjs244.js"),d=require("react");;/* empty css */const p=require("./index.cjs271.js"),h=require("./index.cjs134.js"),s=require("./index.cjs9.js"),R=require("./index.cjs196.js"),l=require("./index.cjs28.js");function m({title:c,elements:n=[],total:r,totalLabels:t={first:"Stai visualizzando",middle:"di",end:"elementi"},handleLoadMore:u,loading:x=!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("h2",{className:"title",children: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(o=>d.createElement(h.AggregationItemCard,{...o,key:o._id}))}),i.jsxRuntimeExports.jsx(s.Row,{className:"w-full-adpt",justifyContent:"center",m:"x12",children:x&&i.jsxRuntimeExports.jsx(R.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&&!x&&(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=m;
//# sourceMappingURL=index.cjs152.js.map