@anoki/fse-ui
Version:
FSE UI components library
54 lines (53 loc) • 1.89 kB
JavaScript
import { j as r } from "./index.es180.js";
import { Section as c } from "./index.es46.js";
import { clsx as u } from "./index.es182.js";
import './sections/SuggestedServices/SuggestedServices.css';/* empty css */
import { CardService as p } from "./index.es29.js";
import { Col as x } from "./index.es10.js";
import { ArrowLink as g } from "./index.es35.js";
const C = ({
title: o,
description: l,
goToLabel: i,
href: n,
asLink: a = "a",
items: e,
className: d
}) => /* @__PURE__ */ r.jsxs(
c,
{
className: u("base-col ui-suggested-services-section", d),
children: [
/* @__PURE__ */ r.jsxs(x, { className: "ui-suggested-services-sectirron-content", children: [
/* @__PURE__ */ r.jsxs("div", { className: "ui-suggested-services-section-title", children: [
/* @__PURE__ */ r.jsx(c.Description, { color: "slate-14", className: "fw-regular fs-3", children: o }),
i && n && /* @__PURE__ */ r.jsx(g, { href: n, asLink: a, fs: "7", children: i.toUpperCase() })
] }),
l && /* @__PURE__ */ r.jsx(c.Description, { children: l })
] }),
/* @__PURE__ */ r.jsx(
"ul",
{
role: "list",
"aria-label": `Lista di ${o}`,
className: "list-style-none ui-suggested-services-layout",
children: e == null ? void 0 : e.map((s, t) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
p,
{
title: s == null ? void 0 : s.name,
href: (s == null ? void 0 : s.link) || (s == null ? void 0 : s.externalLink),
iconType: t === 1 ? "icon2" : t === 2 ? "icon3" : "icon1",
titleTag: "h3",
asLink: a
},
s._id
) }, s._id))
}
)
]
}
);
export {
C as SuggestedServices
};
//# sourceMappingURL=index.es109.js.map